I had the same issue and for what I have seen in other forums this is a dev mode problem, due to how SSR works with dev mode (partial hydration) You can see more here (https://www.framer.community/c/developers/framer-motion-animations-not-working-on-first-load-but-work-after-page-refresh).
I tried to build (npm run build & npm run start) and I think it worked.