joelambert / Flux-Slider

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

Fast consecutive transitions not handled ideally #18

Open timdp opened 13 years ago

timdp commented 13 years ago

I'm not sure what an image gallery should do when I flick through images fast, but Flux Slider's implementation feels less than ideal.

Clicking any button on http://www.joelambert.co.uk/flux/transgallery.html several times results in any previous transitions being skipped, so that the one triggered by the very last click can start straightaway. To get a more smooth experience, personally, I'd rather create a chain or queue of transitions, so that transitions have to wait for previous ones to complete.

Of course, many clicks would introduce a potentially annoying delay. Perhaps transitions could be sped up or skipped when the queue size reaches a certain threshold? Just an idea.

Also, the current implementation isn't necessarily bad, so there should probably be a toggle parameter in the API.

Regardless, keep up the good work!