您好,欢迎访问一九零五行业门户网

jQuery图片旋转插件jQueryRotate.js用法实例

本文实例讲述了jquery图片旋转插件jqueryrotate.js用法。分享给大家供大家参考,具体如下:
推荐一个图片旋转插件,用于浏览相册时,旋转图片。
运行效果截图如下:
具体代码如下:
<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>
希望本文所述对大家jquery程序设计有所帮助。
更多jquery图片旋转插件jqueryrotate.js用法实例。
其它类似信息

推荐信息