joelambert / Flux-Slider

CSS3 Animation based image transitions
http://www.joelambert.co.uk/flux
Other
1.42k stars 285 forks source link

Choose Only One Transition #46

Closed qwert678 closed 10 years ago

qwert678 commented 11 years ago

How to Choose Only One Transition? Thiw code does't work: window.myFlux = new flux.slider('#slider', { transitions: [ 'turn', 'bars3d' ] });

joelambert commented 11 years ago

If you want to just use a single transition you should just list the name of the one you want to use:

window.myFlux = new flux.slider('#slider', { transitions: [ 'turn' ] });

Note, that if you're using IE10 there is currently a bug preventing 3D transitions working so the above will load all valid transitions instead.

thriveweb commented 10 years ago

Is it possible to assign a transition to a slide with Autoplay enabled?

Or can you have Autoplay without random transitions?

Thanks!

joelambert commented 10 years ago

Not out of the box, you would need to disable auto play & write your own custom loop to handle getting the correct transition to use.