By adding a long transition-delay to a CSS property under certain conditions (which you can do using a Style Query), you can persist its value.
A rather geeky/technical weblog, est. 2001, by Bramus
@supports: you want to check for animation-range too@bramus/caniuse-cli, a CLI tool for “Can I Use …”@bramus/style-observer, a MutationObserver for CSS@starting-style support@property supportcos(25deg) in CSS