https://codepen.io/ziziziczic/pen/oNydqNe
wave animation
...
codepen.io
스타일
<style>
@-webkit-keyframes wave {
from {
-webkit-transform: scale(1,1);
transform: scale(1,1);
opacity: 1;
}
to {
-webkit-transform: scale(2,2);
transform: scale(2,2);
opacity: 0;
}
}
@keyframes wave {
from {
-webkit-transform: scale(1,1);
transform: scale(1,1);
opacity: 1;
}
to {
-webkit-transform: scale(2,2);
transform: scale(2,2);
opacity: 0;
}
}
.wave{
position:absolute;
left:50px;
top:50px;
width:21px;
height:21px;
border: 5px solid red;
border-radius: 50%;
animation: wave 1000ms infinite linear;
}
.circle{
position:absolute;
left:56px;
top:56px;
width:19px;
height:19px;
background: red;
border-radius: 50%;
}
</style>
마크업
<div class="wave"></div>
<div class="circle"></div>
페이지 로딩 시, 사용자들의 이탈을 막기 위해 사용할 animation 을 만들어보았다.
'html&css' 카테고리의 다른 글
linear-gradient 사용 예 (0) | 2022.06.29 |
---|---|
css로 가로 스크롤 가능한 이미지 리스트 만들기 (0) | 2022.01.03 |
미디어 쿼리를 지원하지 않는 브라우저에 대응하려면? respond.js 사용하기 (0) | 2021.01.23 |
box-shadow로 입체감있는 구 만들기 (0) | 2021.01.07 |
line-height=1 이 의미하는 바는? (0) | 2020.12.26 |
댓글