Replies: 3 comments 15 replies
-
Hi! I've converted this to a discussion as it's more of an integration question than an issue with swup. And a little note on the side: nobody in their right mind will click on and download zip files from a public comment :) If you want help by other people, consider putting a public version of your project online, e.g. on CodeSandbox, Replit, Glitch, etc. |
Beta Was this translation helpful? Give feedback.
-
Your issue might be related to (re)running javascript on each page visit, e.g. the anime.js init scripts mentioned. Feel free to check out the official docs on Reloading JavaScript and report back. |
Beta Was this translation helpful? Give feedback.
-
Good morning and thank you for your response and suggestion. Yes, in fact it involves loading the anime.js library immediately after the page transition made with swup.js |
Beta Was this translation helpful? Give feedback.
-
Describe the problem 🧐
I created two web pages in html, css and js. To create some effects on the text and elements on the pages I used the animate.js library.
I added the lenis.js library to have smooth scrolling, and everything works fine.
Wanting to insert transitions between the two pages, I used the swup.js library, but the problem is that transitions work well, but animated text with the animate library doesn't work.
Here's the pages:
[swup.zip] — link removed
[swup.zip] — link removed
Describe the propsed solution 😎
How could I solve the problem? Maybe delaying animate.js animations immediately after the page transition made with swup or a similar solution.
Alternatives considered 🤔
Use another method for page transitions
How important is this feature to you? 🧭
Nice to have
Checked all these? 📚
Beta Was this translation helpful? Give feedback.
All reactions