20 of 25
Size slide exits to the moving element
For variable-height content, express vertical travel against the element’s transform reference box. Include any gap to the clipping edge in the exit distance.
DotranslateY(150%) exit translateY(150%) — measured against itself
Don’ttranslateY(40px) Exit translateY(40px) — leaves part of the taller toast visible
Dismiss them — the fixed-pixel exit strands the taller toast
Reduced motion: end states only, as your setting asks.
Before you ship
- Does the tallest toast clear the boundary?
- Does the shortest toast also clear its inset?
- Can focus reach the dismissed content?