ë¹í기ì ì ëë©ì´ì í¨ê³¼ì£¼ê¸° (CSS)
ìë ë¹í기 ì¬ì§ì í´ë¦íì¬ ì´ë¤ ì ëë©ì´ì í¨ê³¼ê° 구íëì´ ìëì§ ì´í´ë´ ìë¤.
- ì¬ì§ì í´ë¦íë©´ í¬ê¸°ê°
40x24pxìì400x240pxë¡ íëë©ëë¤(10ë°° íë). - í´ë¹ í¨ê³¼ë 3ì´ê° ììë©ëë¤.
- í¨ê³¼ê° ëëë©´ ì¼ë¿ ì°½ì 'ìë£!'ê° ì¶ë ¥ë©ëë¤.
- ì ëë©ì´ì ì´ ì¤íëë ëììë ì¬ì§ì í´ë¦í´ë ì ëë©ì´ì ì´ ì¤ë¨ëì§ ììµëë¤.
CSS to animate both width and height:
/* original class */
#flyjet {
transition: all 3s;
}
/* JS adds .growing */
#flyjet.growing {
width: 400px;
height: 240px;
}
Please note that transitionend triggers two times â once for every property. So if we donât perform an additional check then the message would show up 2 times.