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

Auto Start Slideshow #65

Closed
422 opened this issue May 1, 2012 · 3 comments
Closed

Auto Start Slideshow #65

422 opened this issue May 1, 2012 · 3 comments

Comments

@422
Copy link

422 commented May 1, 2012

Im not 100% sure on how to do the config for this, could you please explain more ?

My js is:

var sliderTicker = new Swipe(document.getElementById('sliderTicker'));

I would like the slider to auto play on page load.

@epitaphmike
Copy link

You need to use the config options in the listed examples here. https://github.com/bradbirdsall/Swipe/tree/swipe2#config-options

Example:
var sliderTicker = new Swipe(document.getElementById('sliderTicker'), {
startSlide: 0,
speed: 300,
auto: 3000,
continuous: true,
});

@422
Copy link
Author

422 commented May 2, 2012

Yer I was looking thru your js:

this.options = options || {};
this.index = this.options.startSlide || 0;
this.speed = this.options.speed || 300;
this.callback = this.options.callback || function() {};
this.delay = this.options.auto || 0;

I had set :

last param to 1
and speed to 3000

So thanks, will implement your snippet. Do you know if we can use elastic type ( effects ) .. etc?

Perhaps I should use the easing plugin with it

Cheers for the speedy reply

@epitaphmike
Copy link

This is not my JS. I was just implementing this yesterday and it was fresh in my mind. I prefer the default functionality since is it similar to iOS.

@thebird thebird closed this as completed May 19, 2012
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