Create a gist now

Instantly share code, notes, and snippets.

@ikekou /sample.js
Last active Aug 29, 2015

What would you like to do?
[javascript] requestAnimationFrameのベンダプリフィクス対応のスニペット
(function (w, r) {
w['r'+r] = w['r'+r] || w['webkitR'+r] || w['mozR'+r] || w['msR'+r] || w['oR'+r] || function(c){ w.setTimeout(c, 1000 / 60); };
})(window, 'equestAnimationFrame');
Owner

ikekou commented Mar 25, 2015

jQueryで破棄されたrequestAnimationFrameとJSでのアニメーション実装で注意すること http://0-9.sakura.ne.jp/pub/lt/modest/start.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment