Open howardk opened 12 years ago
I want to do the same. Is it possible?
me too, help plz
rcarousel isn't responsive? Please make it responsive by making it dynamic (for dimensions such as width and height, make them possible using percentages)
You can create a variable with JavaScript which gets the user screen width and pass it to the width property in rcarousel.
var carousel_width = document.documentElement.clientWidth;
$("#carousel").rcarousel({ width: carousel_width, })
You can also do calculations on carousel_width such as multiplying it by a percentage. Just remember to use something like Math.floor() so that the variable you pass to rcarousel is a positive integer.
Since rcarousel is dependent on a declared width and height, it doesn't work on responsive design-based websites. Is there a way to dynamically change those values to make it responsive? Or can the width and height be done through percentages?