Table of Contents

Method Register

Namespace
Velvet
Assembly
Velvet.Docs.dll

Register(string, IReadOnlyList<KeyframeStop>, float, BezierCurve?)

Registers name for animate-name, looping over durationSec on timing (CSS ease when null), replacing an earlier registration of the name.

public static void Register(string name, IReadOnlyList<KeyframeStop> stops, float durationSec = 1, BezierCurve? timing = null)

Parameters

name string
stops IReadOnlyList<KeyframeStop>
durationSec float
timing BezierCurve?

Exceptions

ArgumentException

The name is empty, spelled like a built-in or holds a character a class cannot, the stops are none or out of range, or the duration is not positive.