MotionCss
module MotionCss| Assembly | Partas.Nacara.Plugins.Motion |
Hovers compiled to CSS transitions.
Functions and values
duration (hover: Hover) : int
duration (hover: Hover) : intThe 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
easing (easing: Easing) : stringThe CSS easing: linear, cubic-bezier() or a spring's linear().
hover (hover: Hover) : string
hover (hover: Hover) : stringThe rules for one hover.
stylesheet (policy: ReducedMotion) (hovers: Hover list) : string
stylesheet (policy: ReducedMotion) (hovers: Hover list) : stringThe stylesheet for the hovers, under a reduced-motion policy.
value (value: MotionValue) : string
value (value: MotionValue) : stringThe CSS value: a token as var(--first-last, fallback), a literal as written.
A token without a fallback is var(--first-last).