Skip to content

Skipped out animation when using Parallel Plugin #812

Answered by hirasso
ercovi asked this question in Help
Discussion options

You must be logged in to vote

Hi @ercovi

ParallelPlugin will always skip the out-animation. What exactly are you trying to do? If you want to execute some custom logic as soon as a visit starts, you could make use of the visit:start hook:

const swup = new Swup({
  // ...
});

swup.hooks.on("visit:start", (visit) => {
  // execute custom logic every time a visit starts
});

Hope this helps. You can read more about hooks in the docs.

Replies: 1 comment

Comment options

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