import { useEffect } from "react"; import AOS from "aos"; export function AOStry(){ useEffect(() => { AOS.init({ disable: "phone", duration: 700, easing: "ease-out-cubic", }); }, []); return( <h1 data-aos="zoom-y-out">Sample heading</h1> ) }