Skip to content

MotionOptions

type MotionOptions =
    {
        Document: string
        Engine: MotionEngine
        ReducedMotion: ReducedMotion
        AnimeSource: AnimeSource
        Hovers: Map<string,HoverSettings>
    }
AssemblyPartas.Nacara.Plugins.Motion

Options of the motion plugin.

Fields

Document: string

The motion document the Figma plugin exported.

A relative path is taken from the site's project root, where Nacara reads content from. Defaults to "design/tokens/motion.json".

Engine: MotionEngine

The engine that plays the hovers.

Defaults to Css.

ReducedMotion: ReducedMotion

What the stylesheet does for visitors who ask for reduced motion.

Defaults to Instant.

AnimeSource: AnimeSource

Where anime.js comes from, for hovers it plays.

Defaults to Bundled.

Hovers: Map<string,HoverSettings>

Settings of single hovers, by hover name.

Defaults to Map.empty.