Table of Contents

Property DurationSec

Namespace
Velvet
Assembly
Velvet.Docs.dll

DurationSec

Animation duration (seconds). Applied as the inline transition-duration style. For Bezier it IS the (fixed) duration, exactly as for a plain tween — only the easing sampling differs. For Spring, where none of Stiffness, Damping and Mass is set, it describes the spring together with Bounce, as Framer Motion's spring duration does: a pass of the play ends on its target once this long has passed (held between 0.01 and 10 seconds). A value of exactly 0 lands any spring on its target as soon as its DelaySec has run, where RepeatDelaySec is 0; a spring setting any of the three physics knobs ignores any other duration.

public float DurationSec { get; init; }

Property Value

float