Lea Verou on Nostr: Few CSS things have me as confused as transition-behavior: allow-discrete. In theory, ...
Few CSS things have me as confused as transition-behavior: allow-discrete.
In theory, it's supposed to allow discrete properties like `display` to animate as well, allowing for entry and exit animations.
However, I can never seem to get it to work both ways (without @starting-style).
Example:
https://codepen.io/leaverou/pen/NPKpdKb
Fade out: ✅
Fade in: 🚫
In theory, it's supposed to allow discrete properties like `display` to animate as well, allowing for entry and exit animations.
However, I can never seem to get it to work both ways (without @starting-style).
Example:
https://codepen.io/leaverou/pen/NPKpdKb
Fade out: ✅
Fade in: 🚫