Fine-tune light, shadows, borders, neumorphic
Light and shadows
Borders
Neumorphic

Motion

Motion tokens scale with --pm-motion-scale (set by data-motion or the OS reduced-motion preference). Spatial movement only plays for users who have not asked for reduced motion, and the final state is always kept.

Presets

Add data-animate to any element. Entry plays on insertion via @starting-style, with no JavaScript.

fade
scale
pop
slide-up
slide-down
blur

Tokens

Durationms
--pm-duration-instant50
--pm-duration-fast120
--pm-duration-normal200
--pm-duration-moderate280
--pm-duration-slow400
--pm-duration-slower600
EasingValue
--pm-ease-standardcubic-bezier(0.2, 0, 0, 1)
--pm-ease-deceleratecubic-bezier(0, 0, 0, 1)
--pm-ease-acceleratecubic-bezier(0.3, 0, 1, 1)
--pm-ease-emphasizedcubic-bezier(0.3, 0, 0, 1.0)
--pm-ease-springlinear(0, 0.049, 0.161, 0.291, 0.428, 0.573, 0.691, 0.792, 0…)
--pm-ease-bouncelinear(0, 0.137, 0.425, 0.753, 1.037, 1.226, 1.307, 1.294, 1…)
--pm-ease-gentlelinear(0, 0.031, 0.103, 0.191, 0.296, 0.394, 0.489, 0.584, 0…)

Springs

import { spring } from '@prismora/motion'; const { easing, duration } = spring({ stiffness: 260, damping: 22 }); el.style.transition = `scale ${duration}ms ${easing}`;

Scroll-driven and view transitions

<section data-reveal>…</section> <!-- reveals as it enters the viewport --> <img data-parallax style="--pm-parallax: 30px"> import { withViewTransition, animate, stagger } from '@prismora/motion'; await withViewTransition(() => list.sort()); // same-document VT when allowed animate(card, 'pop'); // WAAPI, reduced-motion aware

animate() plays every preset above and, from script only, slide-start and slide-end.