peduarte / wallop

:no_entry: currently unmaintained :no_entry: A minimal JS library for showing & hiding things
1.1k stars 80 forks source link

Auto Start #63

Closed pvernaglia closed 8 years ago

pvernaglia commented 8 years ago

Hi, Can you give an example of how to have wallop auto start and loop through the slides? this is what carousel is for? thanks

19h47 commented 8 years ago

Hi @pvernaglia, Wallop doesn't have option for auto start, because @peduarte wants to keep Wallop as simple as possible. Carousel option is to loop through item. When slide reaches the end, it continues with the first item.

Personally, I do it with GSAP and the next() and previous() control when the animation is complete.

peduarte commented 8 years ago

Hey @pvernaglia, what @19h47 said is spot on. I don't want to bloat this library with too many options, instead, I offer the tools you need to extend it to suit your use case.

I wrote a simple Auto Start example here: http://codepen.io/peduarte/pen/RapQBB

Hope it helps!