반응형
<div class="loading-ispinner">
<div class="ispinner ispinner-large">
<div class="ispinner-blade"></div>
<div class="ispinner-blade"></div>
<div class="ispinner-blade"></div>
<div class="ispinner-blade"></div>
<div class="ispinner-blade"></div>
<div class="ispinner-blade"></div>
<div class="ispinner-blade"></div>
<div class="ispinner-blade"></div>
<div class="ispinner-blade"></div>
<div class="ispinner-blade"></div>
<div class="ispinner-blade"></div>
<div class="ispinner-blade"></div>
</div>
</div>
/* Progress Bar (iSpinner) - 로딩 바 */
.loading{position: fixed;width: 100%;height: 100%;z-index: 12000;top: 0;left:0;background: rgba(0,0,0,.7);}
.ispinner {width: 52px;height: 52px;position: absolute;top: 50%;left: 50%;margin: -26px 0 0 -26px}
.ispinner .ispinner-blade {position: absolute;top: 37%;left: 44.5%;width: 10%;height: 25%;background-color: #fff;border-radius: 50%/20%;
-webkit-animation: iSpinnerBlade 1s linear infinite;
animation: iSpinnerBlade 1s linear infinite;
will-change: opacity;
}
.ispinner .ispinner-blade:nth-child(1) {
-webkit-transform: rotate(30deg) translate(0, -150%);
transform: rotate(30deg) translate(0, -150%);
-webkit-animation-delay: -1.6666666667s;
animation-delay: -1.6666666667s; }
.ispinner .ispinner-blade:nth-child(2) {
-webkit-transform: rotate(60deg) translate(0, -150%);
transform: rotate(60deg) translate(0, -150%);
-webkit-animation-delay: -1.5833333333s;
animation-delay: -1.5833333333s; }
.ispinner .ispinner-blade:nth-child(3) {
-webkit-transform: rotate(90deg) translate(0, -150%);
transform: rotate(90deg) translate(0, -150%);
-webkit-animation-delay: -1.5s;
animation-delay: -1.5s; }
.ispinner .ispinner-blade:nth-child(4) {
-webkit-transform: rotate(120deg) translate(0, -150%);
transform: rotate(120deg) translate(0, -150%);
-webkit-animation-delay: -1.4166666667s;
animation-delay: -1.4166666667s; }
.ispinner .ispinner-blade:nth-child(5) {
-webkit-transform: rotate(150deg) translate(0, -150%);
transform: rotate(150deg) translate(0, -150%);
-webkit-animation-delay: -1.3333333333s;
animation-delay: -1.3333333333s; }
.ispinner .ispinner-blade:nth-child(6) {
-webkit-transform: rotate(180deg) translate(0, -150%);
transform: rotate(180deg) translate(0, -150%);
-webkit-animation-delay: -1.25s;
animation-delay: -1.25s; }
.ispinner .ispinner-blade:nth-child(7) {
-webkit-transform: rotate(210deg) translate(0, -150%);
transform: rotate(210deg) translate(0, -150%);
-webkit-animation-delay: -1.1666666667s;
animation-delay: -1.1666666667s; }
.ispinner .ispinner-blade:nth-child(8) {
-webkit-transform: rotate(240deg) translate(0, -150%);
transform: rotate(240deg) translate(0, -150%);
-webkit-animation-delay: -1.0833333333s;
animation-delay: -1.0833333333s; }
.ispinner .ispinner-blade:nth-child(9) {
-webkit-transform: rotate(270deg) translate(0, -150%);
transform: rotate(270deg) translate(0, -150%);
-webkit-animation-delay: -1s;
animation-delay: -1s; }
.ispinner .ispinner-blade:nth-child(10) {
-webkit-transform: rotate(300deg) translate(0, -150%);
transform: rotate(300deg) translate(0, -150%);
-webkit-animation-delay: -0.9166666667s;
animation-delay: -0.9166666667s; }
.ispinner .ispinner-blade:nth-child(11) {
-webkit-transform: rotate(330deg) translate(0, -150%);
transform: rotate(330deg) translate(0, -150%);
-webkit-animation-delay: -0.8333333333s;
animation-delay: -0.8333333333s; }
.ispinner .ispinner-blade:nth-child(12) {
-webkit-transform: rotate(360deg) translate(0, -150%);
transform: rotate(360deg) translate(0, -150%);
-webkit-animation-delay: -0.75s;
animation-delay: -0.75s; }
.ispinner.ispinner-large {width: 50px;height: 50px; }
.ispinner.ispinner-large .ispinner-blade {
width: 5.5714285714%;
height: 25.7142857143%;
border-radius: 50%/16.67%;
}
@-webkit-keyframes iSpinnerBlade {
0% {opacity: 0.9;}
50% {opacity: 0.25;}
100% {opacity: 0.25;}
}
@keyframes iSpinnerBlade {
0% {opacity: 0.9;}
50% {opacity: 0.25;}
100% {opacity: 0.25;}
}
/* Progress Bar - iSpinner */
'IT > 퍼블리싱 (html+css)' 카테고리의 다른 글
[퍼블리싱] Progress Bar 만들기 (0) | 2024.09.26 |
---|---|
[HTML] Select Option 스타일링 (0) | 2024.08.29 |
[퍼블리싱] 엑스 버튼 만들기 (0) | 2024.05.16 |
[퍼블리싱] 레이어 팝업 만들기 (0) | 2024.05.16 |
[HTML] 모바일 Input 박스 클릭 시 가상키보드 나오지 않게 하기 (0) | 2022.08.18 |