Skip to content

Define JS animation from link data attribute #941

Answered by handiworknyc
handiworknyc asked this question in Help
Discussion options

You must be logged in to vote

{ 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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by handiworknyc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant