{"id":2887,"date":"2016-08-01T11:33:46","date_gmt":"2016-08-01T02:33:46","guid":{"rendered":"http:\/\/sitest.jp\/blog\/?p=2887"},"modified":"2017-04-06T20:43:38","modified_gmt":"2017-04-06T11:43:38","slug":"velocity-js%e3%80%80css%e3%82%92%e8%b6%85%e3%81%88%e3%82%8b%e6%9c%80%e5%bc%b7%e3%82%a2%e3%83%8b%e3%83%a1%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%83%a9%e3%82%a4%e3%83%96%e3%83%a9%e3%83%aa%e3%81%ae","status":"publish","type":"post","link":"https:\/\/sitest.jp\/blog\/?p=2887","title":{"rendered":"Velocity.js\u3000CSS\u3092\u8d85\u3048\u308b\u6700\u5f37\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u79d8\u5bc6\u306b\u8feb\u308b"},"content":{"rendered":"<p>jQuery\u306e\u767b\u5834\u3067\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u8868\u73fe\u304c\u3068\u3066\u3082\u697d\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\u66f4\u306bCSS3\u304c\u30e2\u30c0\u30f3\u30d6\u30e9\u30a6\u30b6\u306e\u5168\u3066\u3067\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u3001<br \/>CSS Transitions\u3092\u4f7f\u3063\u305f\u975e\u5e38\u306b\u6ed1\u3089\u304b\u306a\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3082\u5b9f\u73fe\u51fa\u6765\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u79c1\u306f\u3053\u306eCSS Transitions\u3092\u4f7f\u3063\u305f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u6700\u901f\u3060\u3068\u601d\u3044\u7d9a\u3051\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001<br \/>\u3069\u3046\u3084\u3089JavaScript\u3092\u4f7f\u3063\u305f\u65b9\u304c\u901f\u3044\u30b1\u30fc\u30b9\u304c\u3042\u308b\u3089\u3057\u3044\u306e\u3067\u3059\u3002<\/p>\n<p>Web\u30da\u30fc\u30b8\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u884c\u3046\u4e8b\u306b\u7279\u5316\u3057\u305fVelocity.js\u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\u306a\u3093\u3068\u3053\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3046\u3060\u3051\u3067\u3001\u8d85\u6ed1\u3089\u304b\u306a\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u51fa\u6765\u308b\u3068\u306e\u3053\u3068\uff01<br \/>\u4eca\u56de\u306f Velocity.js \u306e\u5185\u90e8\u5b9f\u88c5\u3092\u8abf\u3079\u306a\u304c\u3089\u79d8\u5bc6\u306b\u8feb\u3063\u3066\u307f\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<div class=\"frame_headding\">\n<h3 style=\"text-align: left;\">jQuery\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306f\u4f55\u304c\u60aa\u3044\uff1f<\/h3>\n<\/div>\n<p>Web\u30b5\u30a4\u30c8\u3067\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u4ee3\u540d\u8a5e\u3068\u3082\u8a00\u3048\u308bjQuery\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3002<br \/>\u4e00\u4f53\u4f55\u304c\u60aa\u304f\u3066\u30ab\u30af\u30ab\u30af\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p>\u305d\u3053\u3067\u8abf\u3079\u305f\u6240\u3001jQuery\u3067\u306f <a href=\"https:\/\/developer.mozilla.org\/ja\/docs\/Web\/API\/Window\/setInterval\" title=\"null\" rel=\"nofollow\" target=\"_blank\">setInterval<\/a> \u3084 <a href=\"https:\/\/developer.mozilla.org\/ja\/docs\/Web\/API\/WindowTimers\/setTimeout\" title=\"null\" rel=\"nofollow\" target=\"_blank\">setTimeout<\/a> \u3092\u4f7f\u3044\u3001<br \/>Velocity.js \u3067\u306f <a href=\"https:\/\/developer.mozilla.org\/ja\/docs\/Web\/API\/Window\/requestAnimationFrame\" title=\"null\" rel=\"nofollow\" target=\"_blank\">requestAnimationFrame<\/a> \u3092\u5229\u7528\u3057\u3066\u3044\u308b\u3068\u3044\u3046\u60c5\u5831\u304c\u5f97\u3089\u308c\u307e\u3057\u305f\u3002<\/p>\n<div class=\"frame_headding\">\n<h3 style=\"text-align: left;\">Verocity.js \u306e\u5b9f\u88c5\u3092\u78ba\u8a8d<\/h3>\n<\/div>\n<p>\u5b9f\u969b\u306b Verocity.js \u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u78ba\u8a8d\u3057\u3066\u3001\u901f\u3044\u3068\u5642\u306e requestAnimationFrame \u306e\u5b58\u5728\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/><a href=\"https:\/\/github.com\/julianshapiro\/velocity\" title=\"null\" rel=\"nofollow\" target=\"_blank\">Verocity.js \u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306fGitHub<\/a>\u3067\u516c\u958b\u3055\u308c\u3066\u304a\u308a\u3001\u8ab0\u3067\u3082\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u95b2\u89a7\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u5168\u3066\u306e\u30d5\u30a1\u30a4\u30eb\u306f<a href=\"https:\/\/github.com\/julianshapiro\/velocity\/blob\/master\/velocity.js\" title=\"null\" rel=\"nofollow\" target=\"_blank\">verocity.js<\/a>\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001<br \/>\u305d\u3053\u304b\u3089\u8a72\u5f53\u90e8\u5206\u306e\u8a18\u8ff0\u3092\u30d4\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"lang-JavaScript\">\/\/ L.464:\nvar rAFShim = (function() {\n    var timeLast = 0;\n\n    return window.webkitRequestAnimationFrame\n      || window.mozRequestAnimationFrame\n      || function(callback) {\n        var timeCurrent = (new Date()).getTime(),\n            timeDelta;\n\n        \/* Dynamically set delay on a per-tick basis to match 60fps. *\/\n        \/* Technique by Erik Moller. MIT license: https:\/\/gist.github.com\/paulirish\/1579671 *\/\n        timeDelta = Math.max(0, 16 - (timeCurrent - timeLast));\n        timeLast = timeCurrent + timeDelta;\n\n        return setTimeout(function() { callback(timeCurrent + timeDelta); }, timeDelta);\n    };\n})();\n\/\/ L.3330:\nvar ticker = window.requestAnimationFrame || rAFShim;\n<\/code><\/pre>\n<p>\u30d9\u30f3\u30c0\u30fc\u30d7\u30ec\u30d5\u30a3\u30c3\u30af\u30b9\u4ed8\u304d\u3092\u542b\u3081\u305f requestAnimationFrame \u3092\u512a\u5148\u7684\u306b\u63a2\u3057\u3001<br \/>\u3082\u3057\u3069\u3046\u3057\u3066\u3082\u898b\u3064\u304b\u3089\u306a\u3044\u5834\u5408\u306f16ms\u6bce\u306bsetTimeout\u3092\u52a0\u5de5\u3057\u305f\u81ea\u4f5c\u95a2\u6570\u3092\u7528\u610f\u3057\u3066\u52d5\u304b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<div class=\"frame_headding\">\n<h3 style=\"text-align: left;\">jQuery \u306e\u5b9f\u88c5\u3092\u78ba\u8a8d<\/h3>\n<\/div>\n<p>\u5b9f\u969b\u306bjQuery\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3082\u78ba\u8a8d\u3057\u3066\u3001setInterval\u3082\u3057\u304f\u306fsetTimeout\u304c\u4f7f\u308f\u308c\u3066\u3044\u308b\u4e8b\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/><a href=\"https:\/\/github.com\/jquery\/jquery\" title=\"null\" rel=\"nofollow\" target=\"_blank\">jQuery\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306fGitHub<\/a>\u4e0a\u306b\u3042\u308a\u3001\u8ab0\u3067\u3082\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u95b2\u89a7\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u969b\u306b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u95a2\u4fc2\u306e\u8a18\u8ff0\u304c\u3042\u308b\u300c\/src\/effects.js\u300d\u30d5\u30a1\u30a4\u30eb\u3092\u95b2\u89a7\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002<br \/>\u5b9f\u969b\u306b\u73fe\u884c\u6700\u65b0\u7248(2016\/06\u6642\u70b9)\u3067\u306f<a href=\"https:\/\/github.com\/jquery\/jquery\/blob\/2.2.4\/src\/effects.js\" title=\"null\" rel=\"nofollow\" target=\"_blank\">2.2.4<\/a>\u3068<a href=\"https:\/\/github.com\/jquery\/jquery\/blob\/1.12.4\/src\/effects.js\" title=\"null\" rel=\"nofollow\" target=\"_blank\">1.12.4<\/a>\u306e2\u7a2e\u985e\u3067\u3059\u3002<\/p>\n<pre><code class=\"lang-JavaScript\">jQuery.fx.interval = 13;\n\njQuery.fx.start = function() {\n    if ( !timerId ) {\n        timerId = window.setInterval( jQuery.fx.tick, jQuery.fx.interval );\n    }\n};\n<\/code><\/pre>\n<p>\u3069\u3061\u3089\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3082start\u95a2\u6570\u306f\u3069\u3061\u3089\u3082\u540c\u3058\u8a18\u8ff0\u3067\u3057\u305f\u3002<br \/>\u78ba\u304b\u306bsetInterval\u3092\u5229\u7528\u3057\u3066\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u73fe\u3057\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u958b\u767a\u6700\u65b0\u7248\u3067\u3042\u308b<a href=\"https:\/\/github.com\/jquery\/jquery\/blob\/master\/src\/effects.js\" title=\"null\" rel=\"nofollow\" target=\"_blank\">master\u30d6\u30e9\u30f3\u30c1\u306e\u540c\u30d5\u30a1\u30a4\u30eb<\/a>\u3092\u78ba\u8a8d\u3057\u305f\u6240\u3001<br \/>\u901f\u3044\u3068\u5642\u306erequestAnimationFrame\u3092\u512a\u5148\u7684\u306b\u63a2\u3057\u3066\u5229\u7528\u3059\u308b\u8a18\u8ff0\u3092\u898b\u3064\u3051\u307e\u3057\u305f\u3002<br \/>\u8fd1\u3044\u5c06\u6765\u3053\u306e\u8a18\u8ff0\u304c\u63a1\u7528\u3055\u308c\u305f\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u914d\u5e03\u3055\u308c\u308c\u3070\u3001jQuery\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3082\u304b\u306a\u308a\u901f\u304f\u306a\u308b\u3053\u3068\u304c\u671f\u5f85\u51fa\u6765\u307e\u3059\u3002<\/p>\n<pre><code class=\"lang-JavaScript\">jQuery.fx.start = function() {\n    if ( !timerId ) {\n        timerId = window.requestAnimationFrame ?\n            window.requestAnimationFrame( raf ) :\n            window.setInterval( jQuery.fx.tick, jQuery.fx.interval );\n    }\n};\n<\/code><\/pre>\n<div class=\"frame_headding\">\n<h3 style=\"text-align: left;\">setInterval VS requestAnimationFrame<\/h3>\n<\/div>\n<p>\u78ba\u304b\u306b\u73fe\u884c\u7248 jQuery \u306f setInterval \u3092\u63a1\u7528\u3057\u3001<br \/>\u307e\u305f Verocity.js \u3082 requestAnimationFrame \u3092\u63a1\u7528\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u307e\u3060 setInterval \u304c requestAnimationFrame \u3088\u308a\u9045\u3044\u3068\u6c7a\u307e\u3063\u305f\u8a33\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br \/>requestAnimationFrame \u306f\u305d\u3093\u306a\u306b\u512a\u308c\u3066\u3044\u308b\u306e\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p>\u2026\u2026\u3068\u3044\u3046\u308f\u3051\u3067\u5b9f\u9a13\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p><img loading=\"lazy\" src=\"https:\/\/storage.googleapis.com\/sitest-wp\/blog\/wp-content\/uploads\/2016\/06\/velocity-js-1.png\" alt=\"velocity-js-1\" width=\"778\" height=\"176\" class=\"alignnone size-full wp-image-2888\" \/><\/p>\n<pre><code class=\"lang-html\">&lt;form name=&quot;controller&quot;&gt;\n  &lt;label&gt;\n    now:\n    &lt;input name=&quot;now&quot; \/&gt;\n  &lt;\/label&gt;\n&lt;\/form&gt;\n&lt;audio id=&quot;audio&quot; controls \/&gt;\n<\/code><\/pre>\n<p>\u3053\u308c\u306faudio\u3068input\u306e2\u3064\u306e\u30bf\u30b0\u3060\u3051\u3067\u4f5c\u3063\u305f\u30b7\u30f3\u30d7\u30eb\u306a\u30da\u30fc\u30b8\u3067\u3059\u3002<br \/>\u73fe\u5728\u306e\u97f3\u697d\u306e\u518d\u751f\u7b87\u6240\u306e\u79d2\u6570(\u5c0f\u6570\u70b9\u4ee5\u4e0b\u3082)\u3092input\u30bf\u30b0\u306b\u9010\u4e00\u53cd\u6620\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f setInterval \u304b\u3089\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" src=\"https:\/\/storage.googleapis.com\/sitest-wp\/blog\/wp-content\/uploads\/2016\/06\/velocity-js-setinterval.png\" alt=\"velocity-js-setinterval\" width=\"790\" height=\"342\" class=\"alignnone size-full wp-image-2889\" \/><\/p>\n<pre><code class=\"lang-JavaScript\">timeUpdate = function() {\n  document.forms.controller.now.value = audio.currentTime;\n}\nsetInterval(timeUpdate, 13);\n<\/code><\/pre>\n<p>jQuery\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u3068\u540c\u3058\u63cf\u753b\u983b\u5ea6\u306e13ms\u306b\u6307\u5b9a\u3057\u307e\u3057\u305f\u304c\u3001<br \/>\u79d2\u9593\u7d0477\u56de\u3082\u30da\u30fc\u30b8\u3092\u66f8\u304d\u63db\u3048\u308b\u8a08\u7b97\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>Chrome\u306e\u30bf\u30b9\u30af\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u306e\u6a5f\u80fd\u3067CPU\u4f7f\u7528\u7387\u3082\u78ba\u8a8d\u3057\u307e\u3057\u305f\u304c29%\u3068\u6d41\u77f3\u306e\u91cd\u3055\u3067\u3059\u3002<br \/>\u6570\u79d2\u9593\u306b1\u5ea6\u307b\u3093\u306e\u308f\u305a\u304b\u306a\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u6570\u5b57\u306e\u5207\u308a\u66ff\u308f\u308a\u306b\u5f15\u3063\u304b\u304b\u308b\u3088\u3046\u306b\u611f\u3058\u307e\u3059\u3002<\/p>\n<p>\u7d9a\u3044\u3066 requestAnimationFrame \u3092\u4f7f\u3063\u305f\u4f8b\u3092\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" src=\"https:\/\/storage.googleapis.com\/sitest-wp\/blog\/wp-content\/uploads\/2016\/06\/velocity-js-requestanimationframe.png\" alt=\"velocity-js-requestanimationframe\" width=\"790\" height=\"352\" class=\"alignnone size-full wp-image-2890\" \/><\/p>\n<pre><code class=\"lang-JavaScript\">timeUpdate = function() {\n  document.forms.controller.now.value = audio.currentTime;\n  requestAnimationFrame(timeUpdate);\n}\nrequestAnimationFrame(timeUpdate);\n<\/code><\/pre>\n<p>\u4e00\u5207\u306e\u5f15\u3063\u639b\u304b\u308a\u3082\u611f\u3058\u307e\u305b\u3093\u3002<br \/>CPU\u4f7f\u7528\u7387\u308224\u301c25%\u4ed8\u8fd1\u3067\u6b62\u307e\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<div class=\"frame_headding\">\n<h3 style=\"text-align: left;\">setInterval \u3068 requestAnimationFrame \u306e\u7d50\u679c\u304b\u3089\u8003\u5bdf<\/h3>\n<\/div>\n<p>Chrome\u306e\u30d5\u30ec\u30fc\u30e0\u5207\u308a\u66ff\u3048\u30bf\u30a4\u30df\u30f3\u30b0\u306f\u79d2\u9593\u7d0460\u56de\u3067\u3042\u308b\u4e8b\u304b\u3089\u3001<br \/>\u5358\u7d14\u306b\u5b9f\u884c\u56de\u6570\u306e\u5dee\u304cCPU\u4f7f\u7528\u7387\u306b\u5f71\u97ff\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\u5b9f\u969b\u306b\u5148\u307b\u3069\u306e\u4f8b\u3067 setInterval \u306e\u5b9f\u884c\u611f\u899a\u3092 17ms \u3068\u8a2d\u5b9a\u3059\u308b\u3068\u3001requestAnimationFrame \u3068\u307b\u307c\u540c\u3058CPU\u4f7f\u7528\u7387\u3068\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u5229\u7528\u8005\u304c\u5909\u66f4\u3092\u611f\u3058\u308b\u306e\u306fJavaScript\u304c\u753b\u9762\u3092\u66f8\u304d\u63db\u3048\u305f\u6642\u3067\u306f\u306a\u304f\u3001<br \/>\u3042\u304f\u307e\u3067\u30d6\u30e9\u30a6\u30b6\u306e\u518d\u63cf\u753b\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3060\u3063\u305f\u308f\u3051\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u304c setInterval \u3068 requestAnimationFrame \u306e\u5dee\u3068\u3057\u3066\u73fe\u308c\u3066\u3044\u308b\u306e\u3067\u3059\u3002<br \/>\u30d6\u30e9\u30a6\u30b6\u306e\u518d\u63cf\u753b\u306b\u5408\u308f\u305b\u3066\u6b21\u306e\u51e6\u7406\u304c\u8d70\u308brequestAnimationFrame\u306f\u5c11\u3057\u3060\u3051\u52b9\u7387\u304c\u826f\u3044\u5b9f\u88c5\u306b\u306a\u308b\u306e\u3067\u3059\u3002<br \/>\u3057\u304b\u3057\u3001\u3053\u306e\u5c11\u3057\u306e\u5dee\u3067\u898b\u305f\u76ee\u306e\u6ed1\u3089\u304b\u3055\u304c\u3053\u3093\u306a\u306b\u5909\u308f\u308b\u3068\u306f\u601d\u3044\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<p>\u3061\u306a\u307f\u306bjQuery\u306e\u518d\u63cf\u753b\u30bf\u30a4\u30df\u30f3\u30b0\u304c13ms\u6bce\u3067\u3042\u308b\u6839\u62e0\u306b\u95a2\u3057\u3066\u3067\u3059\u304c\u3001<br \/>\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306eIE\u3084Firefox\u306f\u308f\u308a\u3068\u5927\u96d1\u628a\u306a\u5b9f\u884c\u3092\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<br \/>\u66f8\u304d\u63db\u3048\u983b\u5ea6\u3092\u4e0a\u3052\u308b\u4e8b\u3067\u3001\u4e0a\u8a18\u306e\u30d6\u30e9\u30a6\u30b6\u306b\u5bfe\u5fdc\u3057\u305f\u3068\u63a8\u6e2c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u53c2\u8003\u30b5\u30a4\u30c8<\/p>\n<ul style=\"margin-left: 20px;margin-bottom: 20px;font-size: 1.1em;\">\n<li style=\"list-style: disc;\"><a href=\"https:\/\/developer.mozilla.org\/ja\/docs\/Web\/API\/Window\/requestAnimationFrame\" title=\"null\" rel=\"nofollow\" target=\"_blank\">window.requestAnimationFrame &#8211; MDN<\/a><\/li>\n<li style=\"list-style: disc;\"><a href=\"https:\/\/goo.gl\/dkcIEU\" title=\"null\" rel=\"nofollow\" target=\"_blank\">\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u3088\u308b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u5236\u5fa1 &#8211; mdsn<\/a><\/li>\n<li style=\"list-style: disc;\"><a href=\"http:\/\/d.hatena.ne.jp\/sandai\/20100513\/p1\" title=\"null\" rel=\"nofollow\" target=\"_blank\">setInterval\u3068setTimeout\u3092\u8abf\u3079\u305f\u7d50\u679c\u4f59\u5206\u306a\u3053\u3068\u306b\u306a\u3063\u305f &#8211; \u4e09\u7b49\u5175<\/a><\/li>\n<\/ul>\n<div class=\"frame_headding\">\n<h3 style=\"text-align: left;\">\u4f55\u6545 jQuery \u306f setInterval \u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u304b\uff1f<\/h3>\n<\/div>\n<p><a href=\"https:\/\/developer.mozilla.org\/ja\/docs\/Web\/API\/Window\/requestAnimationFrame\" title=\"null\" rel=\"nofollow\" target=\"_blank\">window.requestAnimationFrame &#8211; MDN<\/a><\/p>\n<p>MDN \u306e\u30b5\u30a4\u30c8\u306b\u30d6\u30e9\u30a6\u30b6\u306e\u5b9f\u88c5\u72b6\u6cc1\u304c\u3042\u308a\u307e\u3059\u3002<br \/>PC\u7528\u30d6\u30e9\u30a6\u30b6\u306f\u3069\u308c\u3082\u6bd4\u8f03\u7684\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3057\u304b\u52d5\u4f5c\u305b\u305a\u3001<br \/>\u30b9\u30de\u30db\u7528\u30d6\u30e9\u30a6\u30b6\u306b\u81f3\u3063\u3066\u306f\u30d9\u30f3\u30c0\u30fc\u30d7\u30ec\u30d5\u30a3\u30c3\u30af\u30b9\u306a\u3057\u3067\u306f\u4f55\u3082\u52d5\u304b\u306a\u3044\u3068\u3044\u3046\u6709\u69d8\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f<a href=\"https:\/\/www.w3.org\/TR\/animation-timing\/#requestAnimationFrame\" title=\"null\" rel=\"nofollow\" target=\"_blank\">W3C\u3067\u52e7\u544a\u3055\u308c\u305f\u65e5\u4ed8<\/a>\u30822015\/09\/22\u3068\u6700\u8fd1\u3067\u3001<br \/>\u305d\u308c\u307e\u3067\u306f\u5404\u30d6\u30e9\u30a6\u30b6\u304c\u5148\u884c\u5b9f\u88c5\u3057\u3066\u3044\u308b\u72b6\u614b\u3067\u3057\u305f\u3002<\/p>\n<p>jQuery \u306f\u4e0b\u4f4d\u4e92\u63db\u3092\u91cd\u8996\u3059\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3059\u306e\u3067\u3001<br \/>\u4e2d\u3005\u53d6\u308a\u5165\u308c\u3089\u308c\u306a\u3044\u4e8b\u60c5\u304c\u3042\u308b\u306e\u3067\u3057\u3087\u3046\u306d\u3002<\/p>\n<div class=\"frame_headding\">\n<h3 style=\"text-align: left;\">CSS Transitions VS Velocity.js<\/h3>\n<\/div>\n<p>CSS Transitions \u306f JavaScript \u5236\u5fa1\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3068\u6bd4\u3079\u308b\u3068\u7dfb\u5bc6\u306a\u8a2d\u5b9a\u306f\u51fa\u6765\u307e\u305b\u3093\u3002<br \/>\u307e\u305f\u3001CSS Transitions \u306fGPU\u3092\u5229\u7528\u3067\u304d\u308b\u4e0a\u3001\u30d6\u30e9\u30a6\u30b6\u30cd\u30a4\u30c6\u30a3\u30d6\u3067\u6700\u9069\u5316\u3067\u304d\u308b\u3068\u3044\u3046\u30a4\u30e1\u30fc\u30b8\u304c\u3042\u308a\u307e\u3059\u304c\u3001<br \/>\u305d\u306e\u52b9\u7387\u306f\u73fe\u6642\u70b9\u3067\u306f\u5927\u3057\u305f\u30a2\u30c9\u30d0\u30f3\u30c6\u30fc\u30b8\u3067\u306f\u306a\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n<p><a href=\"http:\/\/beijaflor.hatenablog.jp\/entry\/2014\/06\/18\/090706\" title=\"null\" rel=\"nofollow\" target=\"_blank\">Volocity.js\u3092\u4f7f\u3063\u3066\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u6bd4\u8f03\u3057\u3066\u307f\u305f &#8211; beijaflor<\/a><\/p>\n<p>\u4e0a\u8a18\u30b5\u30a4\u30c8\u306eDEMO2\u3067\u306f CSS Transitions \u3092\u6271\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u306e Transit \u3068\u3001Velocity.js \u3092\u6bd4\u8f03\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\u6271\u3046\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u6570\u304c\u591a\u3059\u304e\u308b\u70ba\u304b\u3001Transit \u3067\u306f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u81ea\u4f53\u306f\u6ed1\u3089\u304b\u306a\u3082\u306e\u306e\u3001\u958b\u59cb\u76f4\u5f8c\u306f\u30d5\u30ea\u30fc\u30ba\u3057\u3066\u3044\u308b\u3088\u3046\u306b\u601d\u3048\u307e\u3059\u3002<br \/>CSS Transitions \u306f\u591a\u6570\u306e\u753b\u50cf\u3092\u540c\u671f\u3092\u53d6\u308a\u3064\u3064\u4e26\u884c\u3057\u3066\u52d5\u304b\u3059\u4e8b\u306f\u82e6\u624b\u306a\u3088\u3046\u3067\u3059\u3002<\/p>\n<div class=\"frame_headding\">\n<h3 style=\"text-align: left;\">\u307e\u3068\u3081<\/h3>\n<\/div>\n<p>\u3044\u304b\u304c\u3067\u3057\u305f\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p>CSS Transitions \u3082\u7d20\u6674\u3089\u3057\u3044\u6a5f\u80fd\u3067\u3059\u304c\u3001<br \/>JavaScript\u304b\u3089\u6271\u3048\u308bAPI\u3082\u65e5\u3005\u9032\u5316\u3057\u3066\u3044\u308b\u4e8b\u304c\u308f\u304b\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>HTML5\u3067\u69d8\u3005\u306aAPI\u304c\u5897\u3048\u307e\u3057\u305f\u304c\u307e\u3060\u307e\u3060\u4e0d\u4fbf\u3068\u306e\u4e8b\u3067\u3001<br \/>\u898b\u3048\u306a\u3044API\u3084\u305d\u308c\u3092\u6271\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u6b21\u3005\u3068\u767b\u5834\u3057\u305d\u3046\u3067\u3059\u306d\u3002<\/p>\n<p>\u4ee5\u4e0a\u3001\u300cCSS\u3092\u8d85\u3048\u308b\u6700\u5f37\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30d6\u30e9\u30ea\uff01Velocity.js\u306e\u79d8\u5bc6\u306b\u8feb\u308b\u300d\u3067\u3057\u305f\u3002<br \/>\u6700\u5f8c\u307e\u3067\u8aad\u3093\u3067\u3044\u305f\u3060\u304d\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>jQuery\u306e\u767b\u5834\u3067\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u8868\u73fe\u304c\u3068\u3066\u3082\u697d\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u66f4\u306bCSS3\u304c\u30e2\u30c0\u30f3\u30d6\u30e9\u30a6\u30b6\u306e\u5168\u3066\u3067\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u3001CSS Transitions\u3092\u4f7f\u3063\u305f\u975e\u5e38\u306b\u6ed1\u3089\u304b\u306a\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3082\u5b9f\u73fe\u51fa\u6765\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002 \u79c1\u306f\u3053\u306eCSS Transitions\u3092\u4f7f\u3063\u305f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u6700\u901f\u3060\u3068\u601d\u3044\u7d9a\u3051\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u3069\u3046\u3084\u3089JavaScript\u3092\u4f7f\u3063\u305f\u65b9\u304c\u901f\u3044\u30b1\u30fc\u30b9\u304c\u3042\u308b\u3089\u3057\u3044\u306e\u3067\u3059\u3002 Web\u30da\u30fc\u30b8\u306e\u30a2 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2893,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[27],"tags":[],"acf":false,"_links":{"self":[{"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/posts\/2887"}],"collection":[{"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/comments?post=2887"}],"version-history":[{"count":9,"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/posts\/2887\/revisions"}],"predecessor-version":[{"id":9526,"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/posts\/2887\/revisions\/9526"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/media\/2893"}],"wp:attachment":[{"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/media?parent=2887"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/categories?post=2887"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/tags?post=2887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}