#NextJs preloader.
7 messages · Page 1 of 1 (latest)
🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord
🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize
✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)
No, I want to create animations with framer motion when all the content of the website is loaded then hide the loader. The website will be static.
yes so that is https://nextjs.org/docs/app/building-your-application/routing/loading-ui-and-streaming
use this with loading.tsx at the very top level of your application
Actually I have some animations I want that should wait until animation finishes. Does this work in useEffect in template.tsx
Window.addEventListner("load",()=>{setIsLoading(false)})