Ever come up with an action that you apply to multiple elements so that they coordinate together to achieve one goal?
I am coining the action as an ensemble action.
Take a look at 3 examples that I prepared to see the possibilities of using an ensemble action.
💻 REPL: https://svelte.dev/repl/04afc1cc9cda464bb87388d7a967d0ed?version=3.35.0
Related Resources - Creating events with Svelte actions https://youtu.be/22aIzPaI3Vg - Reusing event listeners with Svelte actions https://youtu.be/_IGEl4t1TSM
🥰 Support me https://www.buymeacoffee.com/lihautan
Want to learn more from me? Check out these links:
Twitter: https://twitter.com/lihautan Blog: https://lihautan.com/ Newsletter: https://lihautan.com/newsletter
Thanks for watching 🥰 -- with love, Li Hau