property

Animation range center — CSS reference

Experimental draft: The pointer-animation draft proposes choosing where halfway progress falls within the attachment range. With normal it falls at the midpoint; a percentage offsets it from the range start. A named source or target subject can instead define the coordinate basis. A static keyframe offset can illustrate the shape of an asymmetric time-based interpolation, not implement a pointer timeline.

Formal Syntax & Structure

css syntaxcss
animation-range-center: 25%;

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>animation-range-center</title><style>body{margin:0;background:white}#a{box-sizing:border-box}@keyframes asymmetric{0%{opacity:0}25%{opacity:.5}100%{opacity:1}}#a{animation:asymmetric 4s linear -1s both paused;animation-range-center:25%}</style><body><div id="a">Asymmetric progress</div></body></html>
CSS Reference