如何让旋转木马在完成活动后关注链接?

时间:2016-09-06 07:34:03

标签: jquery hyperlink carousel setinterval

社区,所以我有这个网站https://stfn.herokuapp.com,它正在使用jQuery轮播。在旋转木马完成移动之后,我无法想办法如何转到链接。你们认为setInterval()会效果最好吗?提前谢谢!

1 个答案:

答案 0 :(得分:0)

the docs中,您使用它的轮播有:

/* Fires after an item finishes it's activate animation */
carousel.on('itemActive', function(e, item) {
   //do something with $(item)
});

一旦轮播动画完成,您可以在其中放置document.location.href = "http://test.com";或类似内容来更改页面