animation-direction
Baseline
Widely available
This feature is well established and works across many devices and browser versions. Itâs been available across browsers since 2015ë 9ì.
animation-direction CSS ìì±ì ì ëë©ì´ì
ì´ ìì¼ë¡, ë¤ë¡ ëë ìë¤ë¡ ë²ê°ì ì¬ìëì´ì¼íëì§ ì¬ë¶ë¥¼ ì§ì í©ëë¤.
/* Single animation */
animation-direction: normal;
animation-direction: reverse;
animation-direction: alternate;
animation-direction: alternate-reverse;
/* Multiple animations */
animation-direction: normal, reverse;
animation-direction: alternate, reverse, normal;
/* Global values */
animation-direction: inherit;
animation-direction: initial;
animation-direction: unset;
ì¶ì½ ìì± animationì ì¬ì©íì¬ ëª¨ë ì ëë©ì´ì
ìì±ì í꺼ë²ì ì¤ì íë ê²ì´ í¸ë¦¬í©ëë¤.
| ì´ê¸°ê° | normal |
|---|---|
| ì ì©ëì | all elements, ::before and ::after pseudo-elements |
| ìì | no |
| ê³ì° ê° | as specified |
| Animation type | Not animatable |
문ë²(Syntax)
>ê°(Values)
normal-
ì ëë©ì´ì ì 매 ì¬ì´í´ë§ë¤ ì ë°©í¥ì¼ë¡ ì¬ìë©ëë¤. ì¦, ìí í ëë§ë¤ ì ëë©ì´ì ì´ ìì ìíë¡ ì¬ì¤ì ëê³ ë¤ì ììë©ëë¤. ì´ê²ì 기본ê°ì ëë¤.
reverse-
ì ëë©ì´ì ì 매 ì¬ì´í´ë§ë¤ ìë°©í¥ì¼ë¡ ì¬ìë©ëë¤. ì¦, ìí í ëë§ë¤ ì ëë©ì´ì ì´ ì¢ ë£ ìíë¡ ì¬ì¤ì ëê³ ë¤ì ììë©ëë¤. ì ëë©ì´ì ë¨ê³ê° ê±°ê¾¸ë¡ ìíëê³ íì´ë° ê¸°ë¥ ëí ë°ëë¡ë©ëë¤. ì를 ë¤ì´, ease-in íì´ë° 기ë¥ì ease-outííë¡ ë³ê²½ë©ëë¤.
alternate-
ì ëë©ì´ì ì 매 ì¬ì´í´ë§ë¤ ê° ì£¼ê¸°ì ë°©í¥ì ë¤ì§ì¼ë©°, 첫 ë²ì§¸ ë°ë³µì ì ë°©í¥ì¼ë¡ ì§íë©ëë¤. ì¬ì´í´ì´ ì§ìì¸ì§ íìì¸ì§ë¥¼ ê²°ì íë ì¹´ì´í¸ê° íëìì ììë©ëë¤.
alternate-reverse-
ì ëë©ì´ì ì 매 ì¬ì´í´ë§ë¤ ê° ì£¼ê¸°ì ë°©í¥ì ë¤ì§ì¼ë©°, 첫 ë²ì§¸ ë°ë³µì ìë°©í¥ì¼ë¡ ì§íë©ëë¤. ì¬ì´í´ì´ ì§ìì¸ì§ íìì¸ì§ë¥¼ ê²°ì íë ì¹´ì´í¸ê° íëìì ììë©ëë¤.
ì°¸ê³ :
animation- * ìì±ì ì¬ë¬ ê°ì ì¼íë¡ êµ¬ë¶ ë ê°ì ì§ì íë©´ animation-name ìì±ì ì§ì ë ì ëë©ì´ì
ì í ë¹ëë ê°ì ìì ë°ë¼ ë¤ë¥¸ ë°©ìì¼ë¡ ì§ì ë©ëë¤. ìì¸í ë´ì©ì ì¬ë¬ ì ëë©ì´ì
ìì± ê° ì¤ì ì 참조íììì¤.
Formal syntax
animation-direction =
<single-animation-direction>#
<single-animation-direction> =
normal |
reverse |
alternate |
alternate-reverse
ìì (Examples)
CSS animations를 ë³´ììì¤.
ëª ì¸
| Specification |
|---|
| CSS Animations Level 1 > # animation-direction > |
ë¸ë¼ì°ì í¸íì±(Browser compatibility)
ê°ì´ 보기(See also)
- Using CSS animations
- JavaScript
AnimationEventAPI