목차
원 튕기듯한 느낌
<style>
.circle {
display: block;
width: 38px;
height: 38px;
margin: auto;
border-radius: 50%;
background-color: #a4ece1;
}
.circle:hover {
animation: jello-vertical 0.8s both;
}
@keyframes jello-vertical {
0% {
transform: scale3d(0.9, 0.9, 1);
}
30% {
transform: scale3d(0.85, 1.21, 1);
}
40% {
transform: scale3d(1.15, 0.85, 1);
}
50% {
transform: scale3d(0.92, 1.08, 1);
}
65% {
transform: scale3d(1.03, 0.95, 1);
}
75% {
transform: scale3d(0.95, 1.03, 1);
}
100% {
transform: scale3d(1, 1, 1);
}
}
</style>
<div class="circle"></div>
반응형
'CSS' 카테고리의 다른 글
[CSS] display: flex (flexbox) 정리 (2) | 2023.07.29 |
---|---|
CSS position 속성 (0) | 2021.06.05 |
CSS 스타일 정리 (0) | 2020.05.16 |