aos icon indicating copy to clipboard operation
aos copied to clipboard

AOS is not working with NexJs in production

Open gkp-dev opened this issue 3 years ago • 4 comments

I try AOS on my website made with NextJs and it worked nicely in development but in production the layout doesn't appear.

`import { useEffect } from 'react' import AOS from 'aos' import 'aos/dist/aos.css'

function Header() { useEffect(() => { AOS.init({ duration: 1600 }) })

return ( <header className="text-white" data-aos="fade-up"> <div className="bg-red-500 w-80 h-80"> ) }

export default Header`

gkp-dev avatar Jul 20 '21 14:07 gkp-dev

On my NexJs project it not work too

bob-nem avatar Jul 24 '21 15:07 bob-nem

I thought at first it was the server side rendering made by nextJs but It's not and and i don't know why.

gkp-dev avatar Jul 24 '21 20:07 gkp-dev

same issue

meik1998dev avatar Aug 12 '21 21:08 meik1998dev

Looks like you might be experiencing the same issue as #574 which has a suggested solution https://github.com/michalsnik/aos/issues/574#issuecomment-904994056

digeverything avatar Nov 29 '21 20:11 digeverything