Skip to content

MotionCss

module MotionCss
AssemblyPartas.Nacara.Plugins.Motion

Hovers compiled to CSS transitions.

Functions and values

duration (hover: Hover) : int

The milliseconds a hover plays over.

A cubic or linear easing plays over its DurationMs, a spring over its settling time and a preset over 1200.

easing (easing: Easing) : string

The CSS easing: linear, cubic-bezier() or a spring's linear().

hover (hover: Hover) : string

The rules for one hover.

stylesheet (policy: ReducedMotion) (hovers: Hover list) : string

The stylesheet for the hovers, under a reduced-motion policy.

value (value: MotionValue) : string

The CSS value: a token as var(--first-last, fallback), a literal as written.

A token without a fallback is var(--first-last).