stephane-vanraes / renderless-svelte

A collection of renderless Svelte components
MIT License
277 stars 11 forks source link

Add carousel autoplay funtionality #18

Open taut-and-yare opened 3 years ago

taut-and-yare commented 3 years ago

Small enhancement to allow autoplay

PR on the way!

stephane-vanraes commented 3 years ago

In regards to the comments in #20 where I mention making helpers that provide extra functionality to the components without necessary having to 'embed' that functionality in the component itself (both to save configuration option and complexity), I would see an autoplay function as one of those enhancement.

Made a quick attempt here https://svelte.dev/repl/61f0a91d386e4f32867f67ea74c63768?version=3.38.2

Any thoughts on that ?

taut-and-yare commented 3 years ago

Sure! Seems like a better idea to decouple like that! Do you have a specific wishlist for what you mention in #20 ? I could make some time to work on such a list next week perhaps...

stephane-vanraes commented 3 years ago

I did not make a list (yet) any input is welcome on that issue.