MotionOptions
type MotionOptions =
{
Document: string
Engine: MotionEngine
ReducedMotion: ReducedMotion
AnimeSource: AnimeSource
Hovers: Map<string,HoverSettings>
}| Assembly | Partas.Nacara.Plugins.Motion |
Options of the motion plugin.
Fields
Document: string
Document: stringThe 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
Engine: MotionEngineThe engine that plays the hovers.
Defaults to Css.
ReducedMotion: ReducedMotion
ReducedMotion: ReducedMotionWhat the stylesheet does for visitors who ask for reduced motion.
Defaults to Instant.
AnimeSource: AnimeSource
AnimeSource: AnimeSourceWhere anime.js comes from, for hovers it plays.
Defaults to Bundled.
Hovers: Map<string,HoverSettings>
Hovers: Map<string,HoverSettings>Settings of single hovers, by hover name.
Defaults to Map.empty.