Skip to content
New issue

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

Left-to-right slideshow #107

Closed
Harleyqquinn opened this issue Mar 29, 2011 · 2 comments
Closed

Left-to-right slideshow #107

Harleyqquinn opened this issue Mar 29, 2011 · 2 comments

Comments

@Harleyqquinn
Copy link

Is it possible to have the slideshow autoplay left-to-right (backwards) in addition to the default?

@nathansearles
Copy link
Owner

What you could do is swap the next and previous buttons using css positioning. That'll work if you're not using a pagination.

@phpfile
Copy link

phpfile commented Feb 1, 2013

Find this block of code in the js file:

        if (option.play) {
            // set interval
            playInterval = setInterval(function() {
                animate('next', effect);
            }, option.play);
            // store interval id
            elem.data('interval',playInterval);
        }

And add the one below, underneath it:

        if (option.playInverse) {
            // set interval
            playInterval = setInterval(function() {
                animate('prev', effect);
            }, option.playInverse);
            // store interval id
            elem.data('interval',playInterval);
        }

Then when you initialize the slider use playInvers instead of play

This was referenced Feb 1, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants