旋转木马实现
旋转木马效果有谁实现了吗?求分享代码,求指点
旋转木马效果有谁实现了吗?求分享代码,求指点
2016-01-02
//3d旋转节点
var $carousel = element.find("#carousel");
//旋转木马对象
var carousel = new Carousel($carousel, {
imgUrls: [
"http://img1.sycdn.imooc.com//5662e29a0001905a14410901.png",
"http://img1.sycdn.imooc.com//5662e2960001f16314410901.png",
"http://img1.sycdn.imooc.com//5662e26f00010dea14410901.png"
]
});
var i = 0;
$("button").on("click", function() {
carousel.run(i++);
})
举报