rollerblade是一个jQuery插件,用来对图片进行360度的旋转。
在线演示:https://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' ]}); })
评论