Tweak the shorthand, hover or toggle the target, and compare interpolable vs discrete properties — including transition-behavior: allow-discrete.
A transition interpolates between two computed values when a property changes. Adjust the controls, then hover the stage or click Toggle state to see it run.
Interpolable properties blend smoothly; discrete properties like display snap at the 50% mark unless you opt into allow-discrete.
Reduced motion is on — transitions are instant. Use the buttons below to compare behavior.
Continuous range — every frame is a mix of A and B.
No in-between — value flips halfway through duration.
Modern browsers can fade display: none when you declare transition-behavior: allow-discrete and seed entry opacity with @starting-style.
Classic mode: opacity may fade, but display: none still snaps — the card vanishes abruptly. Enable the checkbox to see the discrete transition participate.