728x90
애니메이션 : 통통튀는 글자
html,body{
width: 100%;
height: 100%;
background: linear-gradient(140deg, skyblue 0%, purple 100%);
display: flex;
justify-content: center;
align-items: center;
}
h1 {
height: 100px;
}
h1 span {
font-family: axis-pan;
font-size: 80px;
color: #fff;
position: relative;
top: 20px;
display: inline-block;
-webkit-font-smoothing: antialiased;
text-shadow: 0 1px 0 #000,
0 2px 0 #000,
0 3px 0 #000,
0 4px 0 #000,
0 5px 0 #000,
0 6px 0 #000 transparent,
0 7px 0 #000 transparent,
0 8px 0 #000 transparent,
0 9px 0 #000 transparent,
0 10px 10px rgba(0,0,0,0.4);
animation: bounce 0.3s ease infinite alternate;
}
h1 span:nth-child(2) {animation-delay:0.1s;}
h1 span:nth-child(3) {animation-delay:0.2s;}
h1 span:nth-child(4) {animation-delay:0.3s;}
h1 span:nth-child(5) {animation-delay:0.4s;}
h1 span:nth-child(6) {animation-delay:0.6s;}
@keyFrames bounce {
100% {
top : -20px;
text-shadow: 0 1px 10px #000,
0 2px 10px #000,
0 3px 10px #000,
0 4px 10px #000,
0 5px 10px #000,
0 6px 10px #000 transparent,
0 7px 10px #000 transparent,
0 8px 10px #000 transparent,
0 9px 10px #000 transparent,
0 10px 10px rgba(0,0,0,0.4);
}
}
728x90
반응형
'CSS > Animation' 카테고리의 다른 글
css애니메이션 - 로딩중~ (3) | 2022.09.27 |
---|---|
css애니메이션 - 움직이는 박스 (2) | 2022.09.27 |
Animation - 움직이는 사진 (4) | 2022.09.20 |
CSS 애니메이션 - 웨이브 (1) | 2022.09.19 |
CSS 애니메이션 - 움직이는 공2 (2) | 2022.09.19 |
댓글