swup / js-plugin

A swup plugin for managing animations in JS  🎞
https://swup.js.org/plugins/js-plugin
MIT License
23 stars 5 forks source link

[Feature Request]: Make animation matching more straight forward #37

Open hirasso opened 7 months ago

hirasso commented 7 months ago

Describe the problem 🧐

Currently, the animations also match of either from or to matches a given route. This is pretty confusing and can lead to brittle setups.

Describe the propsed solution 😎

I'd like to follow the matching logic of fragment-plugin. Return the first animation where both from and to match the current route.

Alternatives considered 🀔

Leave it like it is. This would scare me away from using the plugin

How important is this feature to you? 🧭

Would make my life a lot easier

Checked all these? 📚