DEV Community

Discussion on: Animating Next.js page transitions with Framer Motion

Collapse
 
jameswallis profile image
James Wallis

Hi Luiz, I didn't add it to _app.tsx because the elements are animated when they enter and leave the DOM.
Adding them into _app.tsx would make them only animate on a refresh like you've described.