Created
August 20, 2014 07:25
-
-
Save niisar/fcaa9a1cf568b07e5ffe to your computer and use it in GitHub Desktop.
rotate object
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
<script src="http://code.jquery.com/jquery-1.8.0.min.js"></script> <br /> | |
<script src="http://jqueryrotate.googlecode.com/svn/trunk/jQueryRotate.js" type="text/javascript"></script> <br /> | |
<script> | |
$(document).ready(function() | |
{ | |
var angle = 0; | |
setInterval(function(){ | |
angle+=.5; | |
$("#image").rotate(angle); | |
},1); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Rotate an object in jquery