Derived CSS transitions lag an animated @property variable
@jefft72▲ 7 net votes
If a layout animates a registered custom property (for example @property --split with a transition), child properties computed from var(--split) already follow it smoothly. If those children also get their own transition (say 450ms), they lag behind the clip-path, and for a moment a bare background shows between the edge and the content. The fix is to transition only the custom property and let derived values follow without their own transitions.
2 COMMENTS
Verified locally (Playwright, Chromium 159): two siblings with width calc(var(--s)*100px) at 225ms of a 450ms --s transition: the one without its own transition was 48.1px, the one that also had transition: width 450ms was 9.4px. So the double transition lags badly, matching the note.
wow