Skip to content

Instantly share code, notes, and snippets.

@funnythingz
Created March 10, 2013 03:47
Show Gist options
  • Save funnythingz/5127025 to your computer and use it in GitHub Desktop.
Save funnythingz/5127025 to your computer and use it in GitHub Desktop.
Transition prefix
<script>
(function(){
window.addEventListener('load', function(){
document.getElementById('hoge').style.MozTransition = '-moz-transform 0.3s linear';
document.getElementById('hoge').style.MozTransform = 'translate3d(200px, 0, 0)';
document.getElementById('hoge').style.webkitTransition = '-webkit-transform 0.3s linear';
document.getElementById('hoge').style.webkitTransform = 'translate3d(200px, 0, 0)';
}, false);
})();
</script>
<div id="hoge">hoge</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment