简体   繁体   English

jQuery bxSlider autoDirection'上一步'问题

[英]jQuery bxSlider autoDirection 'prev' issue

I am working on a vertical ticker for a website. 我正在为网站进行垂直报价。 i am using bx slider. 我正在使用bx滑块。

Its all set - i need the autoDirection to be set as 'prev' and i need the tickerHover option to be set as well. 全部设置-我需要将autoDirection设置为“上一个”,同时也需要设置tickerHover选项。 Using autoDirection brings unwanted speed changes in my ticker. 使用autoDirection会在我的置顶栏中带来不必要的速度变化。 when ever i hover my mouse, it works quite well - the ticker pauses. 每当我将鼠标悬停在鼠标上时,它的效果都很好-收录器暂停。

But when the mouse is hovered out of the ticker, the ticker sometimes scrolls very quickly or sometimes very slowly. 但是,当鼠标悬停在行情指示器上方时,行情指示器有时会滚动得非常快,有时会滚动得很慢。

$('#carousel').bxSlider({
    useCSS: false,
    mode:"vertical",
    ticker: true,
    speed: 6000,
    tickerHover:true,
    autoDirection:"prev"
});

here is the fiddle: - http://jsfiddle.net/devilived/z9QdV/2/ 这是小提琴:-http: http://jsfiddle.net/devilived/z9QdV/2/

Can anyone point me to how i can set up right. 谁能指出我如何正确设置。

I'm facing the same issue and solved using some CSS3 tricks. 我面临着同样的问题,并使用一些CSS3技巧解决了这一问题。 I hope it will work for you. 希望它对您有用。

 $('.bxslider').bxSlider({ useCSS: false, mode:"vertical", ticker: true, speed: 10000, tickerHover:true }); 
 .bx-wrapper .bx-viewport { -moz-box-shadow: 0 0 5px #ccc; -webkit-box-shadow: 0 0 5px #ccc; box-shadow: 0 0 5px #ccc; border: solid #fff 5px; left: -5px; background: #fff; } .bxsliderWrapper { transform: rotate(180deg); } .bxsliderWrapper li { transform: rotate(180deg); } 
 <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script type="text/javascript" src="http://bxslider.com/lib/jquery.bxslider.js"></script> <link rel="stylesheet" type="text/css" href="http://bxslider.com/lib/jquery.bxslider.css"> <div class="bxsliderWrapper"> <ul class="bxslider"> <li><img src="http://bxslider.com/images/730_200/hill_trees.jpg" /></li> <li><img src="http://bxslider.com/images/730_200/me_trees.jpg" /></li> <li><img src="http://bxslider.com/images/730_200/houses.jpg" /></li> <li><img src="http://bxslider.com/images/730_200/tree_root.jpg" /></li> <li><img src="http://bxslider.com/images/730_200/hill_fence.jpg" /></li> <li><img src="http://bxslider.com/images/730_200/trees.jpg" /></li> </ul> </div> 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM