CSS-Tricks / AnythingSlider

A jQuery Slider plugin for anything.
http://css-tricks.github.io/AnythingSlider/
GNU Lesser General Public License v3.0
1.15k stars 380 forks source link

goForward() speed parameter? #498

Closed webguy262 closed 11 years ago

webguy262 commented 11 years ago

Is there a goForward() speed parameter that sets how fast the images slide horizontally?

Mottie commented 11 years ago

Hi webguy262!

The animation speed is based on the animationTime option setting (default of 600ms).

If you would like to change the delay for specific panels, please refer to the FAQ.

webguy262 commented 11 years ago

Rob

Thanks. I may not have been clear enough. What my client (we love them all, don't we!) wants is for the horizontal slide change UPON SWIPE to be slower. The auto slide speed (knock wood) is acceptable. It's just the speed with which the slide swipes under your finger. That's why I referenced the goForward() function in the swipe code.

That said, does goForward()/goBack proceed at the animationTime speed? No iPad handy at the moment to test.

Mottie commented 11 years ago

Yes it does, but maybe a better idea would be to use the gotoPage function (demo):

// gotoPage( number, autoplay, callback, time );
slider.gotoPage( slider.currentPage + 1, false, {}, 2000 );

I set the demo to 2000 so you will notice the difference.

Mottie commented 11 years ago

I am guessing this issue has been resolved, so I'm closing it. Please feel free to reopen this issue if you continue to have problems. For any further questions, please use the CSS-Tricks forums. Thanks!