CSSã§ã¢ãã¡ã¼ã·ã§ã³ããã¨ãã¯timing-functionãå¹æçã«ä½¿ãã¨ããæãã«ãªã
â» ä»æ¥ã¯ãã©ã³ã¯ãªé¢è¥¿å¼å ¨éã§æ¸ãã¦ã¾ã
timing-functionã£ã¦JSã§è¨ãã¦ãã¨ããã®easingããããtiming-functionã¯è¦å®å¤ã§
- ease
- ease-in
- ease-out
- ease-in-out
- linear
ã®5ã¤ãç¨æããã¨ããããã©ãããã ãã§ãçµæ§ããããªæ°å¤ã®å¤åã«ãªããããã§ãã«ã¹ã¿ã å¤ã®cubic-bezierã£ã¦ããã®ã§åãã詳細ã«æ±ºãããã¨ãã§ãã¦ããã使ãã¨å¥½ããªåãã«ã§ããããã§ã
linearã®åã
ä¾ãã°linearã®åãã¯ãããªæãã«è¡¨ãããããã©ã»ã»ã»ã¾ã ããããããããã
åè
- CSS Transitions Module Level 3
- http://www.w3.org/TR/css3-transitions/
- The âtransition-timing-functionâ Property
- http://www.w3.org/TR/css3-transitions/#transition-timing-function_tag
ã§ããã®cubic-bezierã®æå®æ¹æ³ãªãããã©ããã¡ãã¡è¨ç®ãªãããã¦ããã¸ãããããã¼ã«ä½¿ã£ãã»ãããããããã¨ããããã³ã¬ä½¿ã£ã¦ãããããã£ã¦ããã®ã¯ãããªã
ã¤ã¾ã¿ã2ã¤ãã£ã¦ãããåããã¨å¥½ããªããã«æ²ç·ãå¤ããããããæ²ç·ãæ°å¤ã®å¤åã«ã©ãå½±é¿ããããã£ã¦ãã®ã¯æ¬¡ã®å³ã«æ¸ãã¦ã¿ãã§ãåãã®æ¯è¼ãã§ããããã«ãªã£ã¦ãããããClick Hereãã®ã¨ãã¯ãªãã¯ãã¦ã¿ã¦ããã©ããªå¤åã«ãªãããã£ã¦ããç®å®ã«ã¯ååãªãããã好ããªåãã«ã§ããã¨æãã§ã
ãããããããY軸ã¯æ°å¤ã®å¤åãX軸ã¯æéã®å¤åã«ãªã£ã¦ããããããã«åããã¦èãã¦æ²ç·åããã¦ãªãã¨ããã§JSã¨ãASã®easingã«ãã£ãbounceã¨ãelasticã¨ãããããè¤éãªåãã¯ã§ãã¸ããã注æãã¨ãã¦ãã