728x90
애니메이션2
원 두개가 회전하는 애니메이션을 구현했습니다.
HTML코드
<div class="loading">
<span class="circle1"></span>
<span class="circle2"></span>
</div>
css코드
body {
overflow: hidden;
height: 100vh;
background-image: linear-gradient(-60deg, #FF5858 0%, #f09880 100%);
}
.loading {
position: absolute;
left: 50%;
top: 50%;
width: 20px;
height: 150px;
animation: load 1s ease 100;
}
.loading .circle1 {
display: block;
width: 20px;
height: 20px;
border-radius: 50%;
background: #fff;
}
.loading .circle2 {
display: block;
width: 20px;
height: 20px;
border-radius: 50%;
background: #fff;
margin-top: 110px;
}
@keyframes load {
0% {transform: translate(-50%, -50%) rotate(0deg)}
100% {transform: translate(-50%, -50%) rotate(360deg)}
}
728x90
반응형
댓글