Tutorial/Css
animation
2023. 08. 01.
Animation
animation μμ±μ μ¬λ¬ μ λλ©μ΄μ κ΄λ ¨ μμ±μ ν λ²μ μ€μ ν μ μλ λ¨μΆν μμ±μ λλ€. μ΄λ₯Ό μ¬μ©νλ©΄ λ°±κ·ΈλΌμ΄λ μ΄λ―Έμ§μ μμΉ, μ¬μ΄μ¦, λ°λ³΅μ¬λΆ, λ°©ν₯, κ³ μ , μ λ±μ κ°νΈνκ² μ§μ ν μ μμ΅λλ€.
μμ±
- animation-name : μ λλ©μ΄μ keyframe μ΄λ¦μ μ€μ ν©λλ€.
- animation-duration : μ λλ©μ΄μ μμ§μ μκ°μ μ€μ ν©λλ€.
- animation-timing-function : μ λλ©μ΄μ μμ§μ μλλ₯Ό μ μν©λλ€.
- animation-delay : μ λλ©μ΄μ μ΄ λ‘λλ ν μ λλ©μ΄μ μ΄ μμλ λ κΉμ§μ μκ°μ λνλ λλ€.
- animation-iteration-count : μ λλ©μ΄μ λ°λ³΅ νμ μ€μ ν©λλ€.
- animation-direction : μ λλ©μ΄μ μμ§μ λ°©ν₯μ μ€μ ν©λλ€.
- animation-fill-mode : μ λλ©μ΄μ μ΄ λλ νμ μνλ₯Ό μ€μ ν©λλ€.
- animation-play-state : μ λλ©μ΄μ μ§νμνλ₯Ό μ€μ ν©λλ€.
λ¬Έλ²
background : image | position | size | repeat | origin | clip | attachment | color
/* @keyframes name | duration */
animation: move 3s;
/* name | duration | delay */
animation: move 3s 1s;
/* name | duration | delay | iteration-count */
animation: move 3s 1s 5;
/* name | duration | delay | iteration-count | direction*/
animation: move 3s 1s 5 reverse;