Krizaka UI
Krizaka UI
ComponentsFoundations

Motion tier

How much a showroom page may move on this device — full (depth, blur, living loops), light (a weak device or Save-Data: transforms only) or still (reduced motion: one plate, the final state) — and DepthField, layers that follow the pointer.

Web · ✓Mobile · n/aDesktop · ✓BetaUtilities & brand
Support level
Beta
Size
1.5 kB gzip, budget 1.1 kB
Who uses it
No live product imports it yet Counted in the dated inventory of 2026-11-23.
import { useMotionTier, motionTierOf, DepthField, MOTION_TIERS } from "@krizaka/ui/motion-tier";

Motion tier: full

Web only — React, from @krizaka/ui/motion-tier. Beta: its API may still change in a minor version.

  • Mobile · n/a. A phone app reads the system's reduced-motion setting itself (AccessibilityInfo) and has no pointer to follow.

Why it is here. The product pages' depth and story: full, light, still (krizaka-internal#4693).

When to use

  • A page with depth, scroll-driven scenes or living loops must choose how much to move.
  • A block needs layers that follow the pointer.

When not to use

  • For the reveal and the off-screen pause of ordinary blocks: MotionObserver of @krizaka/ui/motion.

Installation

Install

npm install @krizaka/ui @krizaka/tailwind @krizaka/tokens tailwindcss

Styles

@import "tailwindcss";
@import "@krizaka/tailwind";
@import "@krizaka/ui/tailwind.css";

Import

import { useMotionTier, motionTierOf, DepthField, MOTION_TIERS } from "@krizaka/ui/motion-tier";

Examples

Depth and tier

Layers that follow the pointer, and the tier this device affords.

Motion tier: full

Props

This module has no component props: see the import and the preview above.

Accessibility

  • still follows prefers-reduced-motion and changes with it; nothing moves and no listener runs.

Best practices

  • Style by data-tier: light drops blur and depth, still shows the final state.
  • Decide with motionTierOf in a test: it is pure.
  • Never animate a filter; the living motion runs only while data-live (on screen).

Generated from the code of @krizaka/ui 5.3.4: its meta.ts, its examples and its types.Edit this documentation on GitHub

On this page