We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f362b34 commit d0ebee9Copy full SHA for d0ebee9
1 file changed
src/baguetteBox.js
@@ -686,7 +686,7 @@
686
}
687
688
function updateOffset() {
689
- var offset = -currentIndex * 100 + '%';
+ var offset = -currentIndex * ( document.getElementsByTagName('html')[0].getAttribute('dir') == 'rtl' ? -100 : 100 ) + '%';
690
if (options.animation === 'fadeIn') {
691
slider.style.opacity = 0;
692
setTimeout(function() {
0 commit comments