mattpocock / xstate-catalogue

Professionally designed, interactive state machines
https://xstate-catalogue.com
MIT License
814 stars 63 forks source link

Carousel machine #61

Closed andrewmcoupe closed 3 years ago

andrewmcoupe commented 3 years ago

This is a machine to manage the state and slide transitions for a carousel. This could be a carousel of any sort eg. image, content etc.

Happy to see alternative approaches to this kind of machine. I was thinking that an activity would be the best approach but events can't be sent inside an activity so I went for the approach advised by David here.

vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/mattpocock/xstate-catalogue/4dYp2WmXdGoqubYg3cT6EgWcKSyg
✅ Preview: https://xstate-catalogue-git-fork-andrewmcoupe-master-mattpocock.vercel.app

mattpocock commented 3 years ago

Going to siphon off some time in the next couple of weeks to look at this and the other machines that people have been contributing. Sorry if I don't get back to you for a while!

andrewmcoupe commented 3 years ago

The changes in this PR are now included in #62