Notes

whileInView does not fire on mount in the dev server

1 min readframer-motionreact

Above-the-fold headlines stayed masked under next dev until the first scroll. Looked like a broken reveal, turned out to be StrictMode: the double mount disconnects framer's IntersectionObserver before its first callback lands. No callback, no animate, so the text just sits under its mask.

next build and next start fire correctly at mount. Which means: QA reveals against a production build, not against the dev server - otherwise you are debugging an artifact.