ããã«ã¡ã¯ã大éªéçºé¨ã®ããã¢ã§ãã
ãã®éããµã¤ãã¦ãºã®æ¡ç¨æ å ±ãã¼ã¸ã®ã¢ãã¡ã¼ã·ã§ã³ã«ã¤ãã¦ã°ã¼ã°ã«ãããããã¼ã¨ãã¹ãã¼ãã®ç¢åããã«ããã³ããé ãã¾ããï¼ä»åã¯ãã®ã¢ãã¡ã¼ã·ã§ã³ãããããããããã¨ãã話ããããã¨æãã¾ãã
çµç·¯
ï¼æé ãã¬ã³ããªã³ã°ããã©ã¼ãã³ã¹åå¼·ä¼ã社å ã§éå¬ãã¾ãããæ±äº¬éçºé¨ã®éå¹³ããã®è©±ããã¤ãã¿ã¼ã§åãããç¢åããã«ããã³ããé ãã¾ããã
社å ã§ã¬ã³ããªã³ã°ããã©ã¼ãã³ã¹åå¼·ä¼ãéå¬ä¸ãwill-changeã®å¹æ絶大ãªãã¢ã§ä¼å ´ãã©ããããã
— teppeis (@teppeis) April 15, 2016
https://t.co/t2Irugs85V ãçã¾ããã¢ããªã¯15ä¸ä»¶ãã®åãã¢ã¤ã³ã³ã®ã¨ãããå¥ã¬ã¤ã¤ã¼ã«ãªã£ã¦ããããåãããã«ãªãæ¥ãè¿ãã¨ãããã¨ã https://t.co/ki5VSvbumY
— Masataka Yakura (@myakura) April 15, 2016
ç¢åãããä»°ã£ã¦ããåãã¢ã¤ã³ã³ã¯ããã§ãã
ã¡ããã©ã¬ã³ããªã³ã°ããã©ã¼ãã³ã¹ã®åå¼·ãã¦ããã®ã§ãåå¼·ããäºãæ´»ããã¦éã³ã§èª¿æ»ãã解決ã¾ã§è©¦ãã¦ãã¾ããã
ããããæ¬çªç°å¢ãä¿®æ£ããã¨ããã¾ã§ã¯è¡ãã¾ããã§ããã
ããã¦ãä¸ã¶æå¾ãããã«åãç¢åããã調æ»ã解決ãå«ãã¦è¨äºã¾ã§æ¸ãã¦ãã ããã¾ããã調æ»æ¹æ³ã調æ»çµæã®æ å ±åæã解決æ¹æ³ãç´°ããããããããæ¸ãã¦ããã®ã§èå³ã®ããæ¹ã¯æ¯éã覧ãã ããã
するするさせたい:サイボウズ採用情報のアニメーション(その1) - fragmentary
するするさせたい:サイボウズ採用情報のアニメーション(その2) - fragmentary
するするさせたい:サイボウズ採用情報のアニメーション(その3) - fragmentary
ç§ã¯è¨äºãã¿ã¦ãã£ã¡ããããããã¨æãã¾ãããããã¾ã§ãã£ã¦é ãããããæ°ãä¼æãã¾ãï¼
ãã®æã«ç¤¾å
ã®ä»²éã¨è©±ãåã£ã¦æ¡ç¨æ
å ±ãã¼ã¸ã®æ¬çªç°å¢ãç´ã決æããã¾ããã
ä»ã¯æ¢ã«ãããããã¦ãããããªãã®ï¼
ã¨ãã声ã社å
ããèããã¾ããã人ã«ãã£ã¦ãããããã¦ããããããããã¦ããªãã£ã¦ãªãã§ããã¨èãã¦ã¿ã¾ããã
ç§ã®ãã½ã³ã³ã§ç¢ºèªããæã¯ãå®ç§ã§ã¹ã ã¼ãºãªã¢ãã¡ã¼ã·ã§ã³ã§ã¯ãªãã£ãã®ã§ãããæ°ã«ãªãç¨ã§ãããã¾ããã§ããã
ããã¯ä½æ
ã ããã¨èããã¨ãç§ã®ãã·ã³ã¯2015å¹´ã®MacBook Proã§ã¹ããã¯ãã¨ã¦ãé«ãäºã«æ°ã¥ãã¾ãããç¢åããã®è¨äºã«ããã¨ã2011å¹´ã®MacBook Airã使ã£ã¦ãµã¤ãã¦ãºã®æ¡ç¨æ
å ±ãã¼ã¸ãã覧ã«ãªã£ãããã§ãã
ç¢åããã¨åããã¹ããã§ã覧ã«ãªãæ¹ããã½ã³ã³ããã¯ã¹ããã¯ãä½ãã®ã§æ¡ç¨æ
å ±ãã¼ã¸ã®ã¢ãã¡ã¼ã·ã§ã³ããããããã¦ããªãããã«æã人ã¯ãã£ã±ãããã§ãããã
æ°ã«ãã¦ãããæ°ã«ãã¦ããªããæ £ãã¦ãããæ £ãã¦ããªãã«ãããããã ããããã¦ã¼ã¶ã«ãããããã¢ãã¡ã¼ã·ã§ã³ããæä¾ããã¢ã¯ã»ã·ããªãã£ã«é æ ®ããã®ã¯ç§éãããããã¼ã®ä»äºã§ããã¨æãã¾ããã
ä¿®æ£åå¾ã®æ¯è¼
æ¬çªç°å¢ãä¿®æ£ãããã®ã§ãã確èªã§ããªãã®ã§ãããä¿®æ£ããåã«ä¿®æ£åçã¨ä¿®æ£å¾çãè¦æ¯ã¹ããããããªãæ®ãã¾ãããããããããããããã¹ãã¼ã¢ã¼ã·ã§ã³ã«ãã¦ãã¾ãã
ä¸ã®æ¹ã¯ä¿®æ£åã§ä¸ã®æ¹ã¯ä¿®æ£å¾ã«ãªã£ã¦ãã¾ããä¸ã®æ¹ã¯ãã£ã±ãããã¿ãã¨ã¬ã¿ããããããã¾ããã
ä¿®æ£ã®èª¬æ
ç¢åããã¯ç´°ãã説æãã¦ãã ãã£ãã®ã§ã¾ã¨ãã ããæ¸ãã¾ãã
ã¾ãã¬ã³ããªã³ã°ããã©ã¼ãã³ã¹ã«ã¤ãã¦è©³ããç¥ãããæ¹ã¯ã°ã¼ã°ã«ã®ã¬ã³ããªã³ã°ããã©ã¼ãã³ã¹ãã¼ã¸ãã覧ãã ããã
ä¿®æ£åã®ã³ã¼ã
(function loopIcon(){ $('.kintone .icon') .css({backgroundPosition:'0'}); .animate({backgroundPosition:'-1680px'}, 1680*36, 'linear', loopIcon); })()
èããããåé¡ï¼
- JavaScriptã®è² è·ï¼
jQuery.animate
ã ã¨å®æçã«JavaScriptãå®è¡ãããã¿ã¼ã²ããè¦ç´ ã®backgroundPosition
ãå°ããã¤å¤ãã¦ããã¾ããJavaScriptã¯ãã¤å®è¡ããããä¿è¨¼ã§ããªãããã¿ã¤ãã³ã°ã«ãã£ã¦vsyncãæãäºããã£ã¦ããã®æã¯ãã¬ã¼ã ã表示ããããã¬ã¼ã ã¬ã¼ããè½ã¡ãäºãããã¾ãã backgroundPosition
ã¯ãã¤ã³ãå¦çãå®è¡ãããããããã£ï¼åèï¼csstriggers.com/background-positionï¼ãªã®ã§ãã¬ã¼ã ã®ã³ã¹ããä¸ããã¾ãããã¬ã¼ã ãã§ããã¾ã§ã®æéãé·ããªãvsyncã«éã«åããªãå¯è½æ§ãé«ã¾ãã¾ãã
ä¿®æ£å¾ã®ã³ã¼ã
ä¸è¨ã®JavaScriptãä¸ã®ã§ä¸æ¸ããã¦ã
// IE9ã§ãªãã¨ãã ãå®è¡ãããã®ã§JavaScriptã§å®è¡ãã¦ãã¾ããã // CSSã®ã¿ã§ãå®è£ å¯è½ã§ãã $('.kintone').css({overflow: 'hidden'}); $('.kintone .icon') .css({ width: '5040px', animation: 'loop-icon-transform 60480ms linear infinite' });
ã¹ã¿ã¤ã«ã·ã¼ãã«ãã¼ãã¬ã¼ã ãå®ç¾©ãã
@keyframes loop-icon-transform { from { transform: translateX(0px) } to { transform: translateX(-1680px) } }
â» IE9ã¯CSSã¢ãã¡ã¼ã·ã§ã³ããµãã¼ããã¦ããªããããIE9ã®å ´åã¯ä¿®æ£åã®ã³ã¼ããå®è¡ãããããã«ãã¦ãã¾ãã
æ¹åãããç¹ï¼
- JavaScriptã¯å®æçã«å®è¡ãããäºããªããªã£ãã®ã§ãJavaScriptã®å¦çã³ã¹ãã¨UIã¹ã¬ããããããã¯ããäºããªããªãã¾ããã
- ã¢ãã¡ã¼ã·ã§ã³ã«å©ç¨ãã¦ããããããã£ã®
transform
ã¯ã³ã³ãã¸ããããããã£ï¼åèï¼csstriggers.com/transformï¼ãªã®ã§ããã¤ã³ãå¦çã¯å®è¡ããã¾ããããã¤ã³ãå¦çã¯é«ã³ã¹ãã§ãããããããã§ãã¬ã¼ã ã®ã³ã¹ãã大åæ¸ãã¾ããã
ãã¬ã¼ã ã®ã³ã¹ããæ¸ãããäºã§ãã¼ã¹ããã¯ã®ãã·ã³ã§ãã¢ãã¡ã¼ã·ã§ã³ãããããåãããã«ãªãã¾ããï¼
æå¾ã«
- ããããã¦ã¼ã¶ç°å¢ã«ãããããã¢ãã¡ã¼ã·ã§ã³ããæä¾ããã®ãç§éãããããã¼ã®ä»äºã§ããã
- ã¬ã¿ããã®ããã¢ãã¡ã¼ã·ã§ã³ãã¹ã¯ãã¼ã«çã¯ä¸å ·åã ã¨å¤æããKAIZENãã¦è¡ãããï¼
- è¨äºã¾ã§æ¸ãã¦ãã ãã£ãç¢åããã«æè¬ï¼
- ã¬ã³ããªã³ã°ããã©ã¼ãã³ã¹ã¯ãã£ã±ãé¢ç½ãï¼
以ä¸ãããã¢ã§ããï¼