Krizaka UI
Krizaka UI
ComposantsFondations

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/aBureau · ✓BêtaUtilitaires et marque
Domaine
Fondations
Niveau de support
Bêta
Taille
1.5 kB gzip, budget 1.1 kB
Qui l'utilise
Aucun produit en production ne l'importe encore Compté dans l'inventaire daté du 2026-11-23.
import { useMotionTier, motionTierOf, DepthField, MOTION_TIERS } from "@krizaka/ui/motion-tier";

Motion tier: full

Web uniquement — React, depuis @krizaka/ui/motion-tier. Bêta : son API peut encore changer à une version mineure.

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

Pourquoi il est là. The product pages' depth and story: full, light, still (krizaka-internal#4693).

Quand l’utiliser

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

Quand ne pas l’utiliser

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

Installation

Installer

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

Styles

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

Importer

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

Exemples

Depth and tier

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

Motion tier: full

Props

Ce module n'a pas de props de composant : voir l'import et l'aperçu ci-dessus.

Accessibilité

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

Bonnes pratiques

  • 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).

Générée depuis le code de @krizaka/ui 5.3.4 : son meta.ts, ses exemples et ses types.Modifier cette documentation sur GitHub

Sur cette page