Answer the question
In order to leave comments, you need to log in
What needs to be added in the script so that its parameters change depending on the screen size?
Faced the following problem using the bxSlider plugin. It is necessary to add a condition in the plugin call code that changes the number of slides in the carousel to 1 for mobile devices.
Right now I have the following plugin setup
$(document).ready(function(){
$('.slider').bxSlider({
slideWidth: 400,
minSlides: 2
});
});
Answer the question
In order to leave comments, you need to log in
Does it fit?
$(document).ready(function(){
$('.slider').bxSlider({
slideWidth: 400,
maxSlides: 2,
minSlides: 1
});
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question