egidiusmengelberg / nuxt-aos

A Nuxt module that adds Animate On Scroll
https://www.npmjs.com/package/nuxt-aos
MIT License
65 stars 5 forks source link

Rendering Problem on Nuxt3 #18

Closed Ismailsnbs closed 6 months ago

Ismailsnbs commented 7 months ago

it will only show the animation on the first visit on every page (or again after a refresh), but when navigating to a page more than once it seems to remember that it already did the animation and is not doing the animation again. i did data-aos-once="false" but nothing changed. in implemention of aos i follow the https://nuxt.com/modules/aos guide but, it didnt work then ı make this;

and it worked but now, it render once

egidiusmengelberg commented 7 months ago
<script setup lang="ts"> import AOS from 'aos'; onMounted(() => AOS.init()); </script>

should not be necessary. Are there any errors in your browser console? What version of nuxt are you using?

egidiusmengelberg commented 6 months ago

Does this still happen in the newer versions of this package?

Gunther-443 commented 6 months ago

For information (not a bug) you must build. It doesn't work un dev mode

Ismailsnbs commented 6 months ago

Does this still happen in the newer versions of this package?

all good right now

egidiusmengelberg commented 6 months ago

great! closing this issue