Home > Article > Web Front-end > jQuery image rotation plug-in jQueryRotate.js usage example
The example in this article describes the usage of jQuery image rotation plug-in jQueryRotate.js. Share it with everyone for your reference, the details are as follows:
Recommend a picture rotation plug-in for rotating pictures when browsing photo albums.
The screenshot of the running effect is as follows:
The specific code is as follows:
<script type="text/javascript"> $(document).ready(function () { $("#images").rotate(45); var value = 0 $("#images1").rotate({ bind: { mouseover: function(){ value +=90; $(this).rotate({ animateTo:value}) } } }); $('#button').click(function(){ $("#images1").rotate({animateTo:parseInt($('#angel').val())}); }); function rotation (){ $("#images2").rotate({ angle:0, animateTo:360, callback: rotation, easing: function (x,t,b,c,d){ return c*(t/d)+b; } }); } rotation(); }); </script>
I hope this article will be helpful to everyone in jQuery programming.
For more jQuery image rotation plug-in jQueryRotate.js usage examples and related articles, please pay attention to the PHP Chinese website!