We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
please update code for RTL language's. thanks
The text was updated successfully, but these errors were encountered:
i'm ready for RTL language modify the baguetteBox.js: add RTL proprty to option 👍 // Global options and their defaults
var options = {}, defaults = { RTL:false, captions: true, buttons: 'auto', fullScreen: false, noScrollbars: false, bodyClass: 'baguetteBox-open', titleTag: false, async: false, preload: 2, animation: 'slideIn', afterShow: null, afterHide: null, onChange: null, overlayBackgroundColor: 'rgba(0,0,0,.8)' };
and change line in updateOffset() function 💯 from : offset = -currentIndex * 100 + '%'; to :
offset = -currentIndex * 100 + '%';
var offset; if (options.RTL) offset = currentIndex * 100 + '%'; else offset = -currentIndex * 100 + '%'; /*initial gallery with RTL option*/ baguetteBox.run('.galleryBox', {RTL:true});
and enjoy 🥇
PERSIAN GULF
Sorry, something went wrong.
On version 1.11.1 I solved it by adding a little minus: Before: var e = 100 * -u + '%'; After: var e = -100 * -u + '%';
No branches or pull requests
please update code for RTL language's.
thanks
The text was updated successfully, but these errors were encountered: