如何在旋转木马上将左/右箭头按钮创建为光标?

时间:2019-02-13 02:05:39

标签: jquery carousel

我正在尝试创建轮播,并用悬停时的向左/向右箭头按钮替换标准光标,但是找不到有关如何实现此目的的任何参考

$(function(){
var owl = $('.owl-carousel');
owl.owlCarousel({
autoplay: 2000,
items:1,
loop: true,
onInitialized  : counter, //When the plugin has initialized.
onTranslated : counter //When the translation of the stage has finished.
});

1 个答案:

答案 0 :(得分:0)

对于版本1.3

$(document).ready(function() {
  $("#owl-example").owlCarousel({
      items:1,
      loop:true,
      autoplay:true,
      autoplayTimeout:1000,
      autoplayHoverPause:true,
      navigation : true,
      navigationText : ['<span class="fa-stack"><i class="fa fa-circle fa-stack-1x"></i><i class="fa fa-chevron-circle-left fa-stack-1x fa-inverse"></i></span>','<span class="fa-stack"><i class="fa fa-circle fa-stack-1x"></i><i class="fa fa-chevron-circle-right fa-stack-1x fa-inverse"></i></span>'],
  });
});

这是您的演示:https://codepen.io/anon/pen/OdBBLe