Struct KeyframeStop
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
One stop of a keyframe animation registered with VelvetKeyframes: the values the animation holds at Offset (0 to 1 through the loop). A property a stop leaves null takes no value there; a property no stop names is not animated, and one that is named between stops starts and ends on the element's own value where no stop at 0 or 1 names it.
public readonly struct KeyframeStop
Constructors
Properties
- Ease
The curve from this stop to the next, as a CSS keyframe's
animation-timing-functionapplies to the interval it starts. Null takes the animation's own.
- Offset
Where in the loop the stop sits, from 0 to 1.
- Opacity
The opacity, replacing the element's own.
- RotateDeg
Degrees added to the element's own rotation.
- Scale
The factor the element's own scale is multiplied by.
- TranslateXPx
Pixels added to the element's own translate along x.
- TranslateYPx
Pixels added to the element's own translate along y.