Created
July 20, 2015 03:40
-
-
Save chuck0523/6767a968226d354aac4c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(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