Skip to content

MotionValue

type MotionValue =
    | Token of path: string * fallback: string option
    | Literal of css: string
AssemblyPartas.Nacara.Plugins.Motion

A value a hover animates between: a design token or a literal CSS value.

Cases

Token of path: string * fallback: string option

A design token, by its dotted path, and the CSS value it falls back to where the site does not define it.

The fallback is the value Figma resolves the token to; a document written before it carries none.

Literal of css: string

A literal CSS value.

Properties

member IsLiteral: bool
member IsToken: bool