You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"I use AOS in my Astro project, and it works fine, but it has an issue. For example, when I use AOS on the home page, the animations work correctly when the page is initially loaded, but they are too fast when navigating between pages. If I go to the about page and then return to the home page, the animations are too fast to see. Why is this happening? Please help or provide information to solve this issue. Do I need to install anything additional for AOS in my project?"
The way I install aos on my astro project
in my src/js directory I add aos.js and it contain this code
import AOS from "aos";
export function aosInit() {
AOS.init({ duration: 1000, easing: "ease-out-cubic", once: false, offset: 50 });
}
in main layout I add this
<script>
import { aosInit } from "@/js/aos";
aosInit();
</script>
The text was updated successfully, but these errors were encountered:
I'm not exactly sure why it happens (seems a CSS problem), but for me it only happens when you use view transitions. I'm currently working on my own animation setup using animejs with some logic taken from AOS for intersections. I plan to share it once done - it works with view transitions.
This is:
Detailed Description
"I use AOS in my Astro project, and it works fine, but it has an issue. For example, when I use AOS on the home page, the animations work correctly when the page is initially loaded, but they are too fast when navigating between pages. If I go to the about page and then return to the home page, the animations are too fast to see. Why is this happening? Please help or provide information to solve this issue. Do I need to install anything additional for AOS in my project?"
The way I install aos on my astro project
The text was updated successfully, but these errors were encountered: