RollerbladejQuery 的图片旋转插件

联合创作 · 2023-10-02 12:28

rollerblade 是一个 jQuery 插件,用来对图片进行 360 度的旋转。

在线演示:http://www.iamapioneer.com/plugins/rollerblade/

示例代码:

  $(document).ready(function(){

    // You can specify an array of images outside of the rollerblade method,
    // and then pass it in, as so:

    var arrayOfImages = [
      'path/to/image/1.jpg',
      'path/to/image/2.jpg',
      'path/to/image/3.jpg',
      'path/to/image/4.jpg',
      'and/so/on.jpg'
    ]

    $("#target").rollerblade({imageArray:arrayOfImages});

    // OR you can create the array directly in the options object, as so:

    $("#target").rollerblade({imageArray:[
      'path/to/image/1.jpg',
      'path/to/image/2.jpg',
      'path/to/image/3.jpg',
      'path/to/image/4.jpg',
      'and/so/on.jpg'
    ]});

  })
浏览 7
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报