您好,欢迎来到盖帽养生。
搜索
您的当前位置:首页jQuery图片旋转插件jQueryRotate.js用法实例

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用法实例相关文章请关注PHP中文网!

Copyright © 2019- gmnft.cn 版权所有

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务