AOS in Nuxt doesn't work when switching between pages
Solution 1:
The accepted answer is not valid anymore for newer Nuxt versions. You will have to disable SSR for libraries that deal with the browser window
in Nuxt. You can read more about this https://nuxtjs.org/docs/directory-structure/plugins/#client-or-server-side-only
export default {
plugins: [
{ src: '~/plugins/aos.js', mode: 'client' }, // only in client side
'~/plugins/aos.client.js', // this syntax also works
]
}