@keyframes
- @keyframesλ css μ λλ©μ΄μ μ μ μνλ λ¬Έλ²μΌλ‘ κ° κ΅¬κ°μ μ΄λ€ μ€νμΌλ‘ μ μ©νμ§ μ§μ νλ€.
- ꡬμ±μμ
1. animation name : @keyframes μ μν μ λλ©μ΄μ μ μ μ©ν λ νμν μ΄λ¦ (λ΄κ° μ νλ€)
2. κ΅¬κ° : from to / 0 - 100%
3. css μ€νμΌ : ꡬκ°μ μ μ©μν¬ μ€νμΌ
animation
- @keyframes μμ μ μν animationμ css animation μμ±μ ν΅ν΄ μ¬μ© ν μ μλ€.
- animation μμ±
: animation-duration, animation-timing-function, animation-delay λ±λ±μ΄ μλ€.
(λ λ§μ μμ±μ λ³΄κ³ μΆλ€λ©΄ μ°Έκ³ μ MDN μ¬μ΄νΈλ₯Ό νμΈ)
π‘ μμ
@keyframes μ λλ©μ΄μ
μ΄λ¦
{
from {
// μ μ©μν¬ CSS
}
to {
// μ μ©μν¬ CSS
}
}
// μμ ------------------------------------------------------------------------------
@keyframes fadeIn
{
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.bgImage
{
position:absolute;
top:0;
left:0;
width:100%;
height: 100%;
z-index: -1;
animation: fadeIn .5s linear;
}
μ°Έκ³
webdesign.tutsplus.com/ko/tutorials/a-beginners-introduction-to-css-animation--cms-21068developer.mozilla.org/ko/docs/Web/CSS/animation
'CSS > κ°λ ' μΉ΄ν κ³ λ¦¬μ λ€λ₯Έ κΈ
[CSS] κ°μμ νμ :after(::after) (0) | 2021.01.06 |
---|