DEV Community

Discussion on: Full Page Transitions with Next.js

Collapse
 
raymolla7 profile image
raymolla7

Hi Ivan, this is wonderful but I am having issue.

I followed this and I have the enter animations working. However I can't seem to get the Exit animations working.

The only thing I did different from you is that I didn't implement framer motion in my _app.tsx but rather in a sub page component. Could this be the reason why?

Collapse
 
ivandotv profile image
Ivan V.

Probably. My code only animates top level components (pages).

Collapse
 
deansacramone profile image
Deano Macaroni

@raymolla7 Did you get this working? I ask because I have the same need. I do NOT want to animate the top level as my animations are for a feature within the app, not the whole app... like only a section of the site. So, I only want to animate only a small section of the site.. So, did you get this working? If so, do you have a repo I can look at? Thanks a bunch.