Hi i using bootstrap and created bootstrap carousel but i want it move from left to the right
this is my code on jsfiddle
on this code carousel move from right to the left
var direction = type == 'next' ? 'left' : 'right'
i changed right and left in var but there is a problem. next slide come in from right again
var direction = type == 'next' ? 'right' : 'left'
I hope you understand what i want 😀
EDIT:
Finally I found the answer: I edited the twitter bootstrap.css
I Xchanged all left and right in .carousel class in bootstrap.css
4
Answers
You can try to change in .carousel-control html code
to
🙂
I also altered the .bootstrap css to achieve this effect. Instead of exchanging all lefts to rights in the css, I altered this line in the inner_carousel class:
“6s ease-in-out left;” to “6s ease-in-out right;”
Additionally, I swapped any calls of “100%” to “-100%” and “100%” to “-100%” in all child classes of the inner_carousel class.
Bootstrap carousel by CSS only (right to left, RTL)
HTML:
CSS:
In the Bootstrap v3.3.7 find the ‘bootstrap.js’ file
Now, find this code :
change it to :
Then, find these lines :
and change that to :