CSS Transition Stuck Spa Navigation

Fix CSS transitions that get "stuck" at their initial state (opacity: 0, transform unchanged) when toggling classes during SPA page navigation. Use when: (1) elements have CSS transition on opacity/transform but remain invisible after adding a `.visible` class, (2) even inline `style="opacity: 1 !important"` doesn't change computed opacity, (3) scroll-reveal animations work on initial page load but fail after navigating between SPA pages, (4) double requestAnimationFrame trick doesn't fix the stuck transition. Common in IntersectionObserver-based reveal systems with show/hide page sections.

hubeiqiao Updated

File contents

hubeiqiao/skills/tree/main/css-transition-stuck-spa-navigation commit fb622c2ed3

Frequently asked questions

npx skillmds@latest add hubeiqiao/css-transition-stuck-spa-navigation