aos icon indicating copy to clipboard operation
aos copied to clipboard

Document is not defined

Open 2hmad opened this issue 4 years ago • 3 comments

This is:

  • Bug

Specifications

  • AOS version: 2.3.4 & 3.0.0 beta
  • OS: Win 10
  • Browser: Chrome Screenshot 2021-10-08 135104

2hmad avatar Oct 08 '21 11:10 2hmad

Same issue here on Next.js

NickVishwamitra avatar Nov 24 '21 04:11 NickVishwamitra

Put it in useEffect if you use react, like this: useEffect(() => { AOS.init(); }, []); or if (typeof window !== "undefined") AOS.init();

saraalmuraytib avatar Jan 24 '22 07:01 saraalmuraytib

Put it in useEffect if you use react, like this: useEffect(() => { AOS.init(); }, []); or if (typeof window !== "undefined") AOS.init();

This worked.

idemmanuel001 avatar Apr 21 '22 23:04 idemmanuel001