728x90
CSS : μ λλ©λμ λ§λ€κΈ° : ν΅ν΅ ν μ€νΈ μ λλ©μ΄μ
μ΄λ² μκ°μλ CSS μ€μ΅μΌλ‘ ν μ€νΈκ° ν΅ν΅ νλ μ λλ©μ΄μ μ λ§λ€μ΄λ³΄κ² μ΅λλ€~~!
#1. HTML
κ°κ°μ span νκ·Έμ ν μ€νΈλ₯Ό νλμ© μ λ ₯ν΄μ£Όμλ©΄ λ©λλ€!
<h1>
<span>t</span>
<span>o</span>
<span>m</span>
<span>e</span>
<span>t</span>
<span>o</span>
<span>l</span>
<span>v</span>
<span>e</span>
</h1>
#2. CSS
λ€μμ CSS μ½λ μ λλ€!
html, body {
width: 100%;
height: 100%;
background: linear-gradient(140deg, beige 0%, salmon 100%);
display: flex;
justify-content: center;
align-items: center;
}
h1 {
height: 100px;
}
h1 span {
font-family: 'κΆμ체';
font-size: 80px;
color: #fff;
position: relative;
top: 20px;
display: inline-block;
-webkit-font-smoothing: antialiased;
text-shadow: 0 1px 0 #ccc,
0 2px 0 #ccc,
0 3px 0 #ccc,
0 4px 0 #ccc,
0 5px 0 #ccc,
0 6px 0 transparent,
0 7px 0 transparent,
0 8px 0 transparent,
0 9px 0 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.5s;
}
h1 span:nth-child(7){
animation-delay: 0.6s;
}
h1 span:nth-child(8){
animation-delay: 0.7s;
}
h1 span:nth-child(9){
animation-delay: 0.8s;
}
@keyframes bounce {
100%{
top: -20px;
text-shadow: 0 1px 0 #ccc,
0 2px 0 #ccc,
0 3px 0 #ccc,
0 4px 0 #ccc,
0 5px 0 #ccc,
0 6px 0 transparent,
0 7px 0 transparent,
0 8px 0 transparent,
0 9px 0 transparent,
0 50px 25px rgba(0,0,0,0.4);
}
}
#3. 결과보기
728x90
'CSS' μΉ΄ν κ³ λ¦¬μ λ€λ₯Έ κΈ
[CSS] μ λλ©μ΄μ 08 : λΉκΈ~λΉκΈ~ λμκ°λ λ‘λ©~ (2) | 2022.09.29 |
---|---|
[CSS] μ λλ©μ΄μ 07 : μμ°μ°μ°μ± λμ΄λλ λ°μ€ (2) | 2022.09.29 |
[CSS] μ λλ©μ΄μ 05 : κΉμ¦€λλ μ 체 ν¨κ³Ό (5) | 2022.09.21 |
[CSS] μ λλ©μ΄μ 04 : μ¨μ΄λΈ~~μ¨μ΄λΈ~~ (6) | 2022.09.19 |
[CSS] μ λλ©μ΄μ μ€μ΅ : κ±·κΈ° μ λλ©μ΄μ (from.ν 맀ν ) (4) | 2022.09.08 |
λκΈ