Define JS animation from link data attribute #941
-
Describe your problem 🧐in the documentation, it says ´from / to /post with data-swup-animation="custom" → animation 1´ but i don't see anywhere to actually name the animations– shouldn't there be a 'title' or 'name' attribute in the animation object? ´´´ What is your question? 🙋♀️How do I name animations using https://swup.js.org/plugins/js-plugin/ and data-swup-animation ??? URL to minimal reproduction 🔗https://swup.js.org/plugins/js-plugin/ Checked all these? 📚
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
{ from: '/', to: 'custom' }, the `to´ item is where you define the animation name. then you need to put the data-swup-animation='custom' on your links |
Beta Was this translation helpful? Give feedback.
{ from: '/', to: 'custom' },
the `to´ item is where you define the animation name. then you need to put the data-swup-animation='custom' on your links