Comments (7)
same question here.. I'd like this option
from bxslider-3.
This is what I did. Pretty simple:
var slider = $("#slider").bxSlider({
controls: false,
pager: true,
auto: true,
etc, etc, etc
});
$(".bx-pager a").click(function(){
slider.startShow();
});
This should deffinitely be a built in setting! Good luck you guys, hope this helps
from bxslider-3.
[SOLVED] Hi i had the same problem while trying to implement bxslider on my site. My problem was, when i click prev or next button it stops. I changed the following lines in jquery.bxslider.js file @ line 607 & 620. There is a DOM object for prev & next called PrevBind & NextBind
var clickNextBind = function(e){
// if auto show is running, stop it
if (slider.settings.auto) el.stopAuto(); --> el.startAuto();
el.goToNextSlide();
e.preventDefault();
}
var clickPrevBind = function(e){
// if auto show is running, stop it
if (slider.settings.auto) el.stopAuto(); --> el.startAuto();
el.goToPrevSlide();
e.preventDefault();
}
Hope this helps everyone, Njoy life!!!!
from bxslider-3.
even better, in jquery.bxslider.js:
var clickNextBind = function(e){
// if auto show is running, stop it
if (slider.settings.auto) el.stopAuto();
el.goToNextSlide();
e.preventDefault();
el.startAuto(); // ---------------------------------------------- JUST ADD THIS LINE
}
/**
* Click prev binding
*
* @param e (event)
* - DOM event object
*/
var clickPrevBind = function(e){
// if auto show is running, stop it
if (slider.settings.auto) el.stopAuto();
el.goToPrevSlide();
e.preventDefault();
el.startAuto(); // ---------------------------------------------- JUST ADD THIS LINE
}
from bxslider-3.
and for only the pager :
$('.bx-pager-item a').click(function(e){
var i = $(this).index();
slider.goToSlide(i);
slider.stopAuto();
restart=setTimeout(function(){
slider.startAuto();
},500);
return false;
});
from bxslider-3.
for 4.1.2 working code:
$('.bx-pager-item a').click(function(e){
var i = $(this).data("slide-index");
slider.goToSlide(i);
slider.startAuto();
return false;
});
from bxslider-3.
This works for me:
var slider = $('.slider');
slider.bxSlider({
auto: true,
autoControls: true,
etc,
onSlideAfter: function() {
slider.startAuto()
}
});
from bxslider-3.
Related Issues (20)
- bxSlider 4.1.2 freezes on touch devices
- bxslider showing blank slides
- Vimeo videos not autoplaying in the slider
- Bxslider not loading HOT 1
- goToSlide(); not working in mode vertical HOT 1
- Multiple cloned sliders being generated with multiple sliders on the same pages
- Hi all, bx slider is not working within a fancybox. can any one help me with this issue?
- reloadSlider() keeps adding onto itself HOT 1
- Issue with colorbox + smoothzoom
- Page refresh brings me to the slider HOT 1
- Removing "alt" from bx-clone (duplicated images when infinite loop is true)
- Touch swipe stops slideshow HOT 3
- bxslider
- Bx slider
- Missing ; semi-colon at the end of jquery.bxSlider.min.js
- fade mode bug > same slide and onSlideAfter not working HOT 1
- Fade mode breaks width HOT 1
- bxslider swipe issue on mobile
- Rapid clicking next/prev displays incorrect pager item below.
- i am working on translating a WordPress website with theme storevilla and the banner dos not appear in the rtl translation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bxslider-3.