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 |
๋๊ธ