Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$(document).ready(function(){
//var log = function(x){console.log(x);}
var deg = 0;
$('#rotateButton').click(function(){
deg += 90;
$('.cube').css({
'-webkit-transform' : 'translateZ(-150px) rotateX('+ deg +'deg)',
'transform' : 'translateZ(-150px) rotateX('+ deg +'deg)'
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment