My website has a main page that loads in with an exciting framer-motion animation. I'm trying to figure out how to make sure this animation only plays the first time the page is loaded, and not every time the page is refreshed or navigated back to. Since I am using NextJS, local storage is only accessible after the initial render inside a useEffect() hook. I'm wondering if there is a way to trigger a callback function after the motion.div animation completes so that I can set local storage at that point.