Skip to content

Instantly share code, notes, and snippets.

@niisar
Created August 20, 2014 07:25
Show Gist options
  • Select an option

  • Save niisar/fcaa9a1cf568b07e5ffe to your computer and use it in GitHub Desktop.

Select an option

Save niisar/fcaa9a1cf568b07e5ffe to your computer and use it in GitHub Desktop.
rotate object
<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>
@niisar

niisar commented Aug 26, 2014

Copy link
Copy Markdown
Author

Rotate an object in jquery

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