Core Strata
motiq/core-strataFreeComponent
A survey scanner reading the deep record: three parallax strata layers drift while a luminous beam sweeps the core, igniting amber marker seams as it finds them. One canvas + a single rAF loop; committed dark Motion Lab palette; reduced-motion static frame, offscreen-paused, forced-colors fallback.
Live preview
live · rendered by the registry
Rendered by motiq on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://www.motiq.dev/r/core-strata.jsonSource
1"use client";23import * as React from "react";45import { cn } from "@/lib/utils";6import { useReducedMotion, useVisibilityPause } from "@/lib/motiq";78/* -------------------------------------------------------------------------- */9/* Types */10/* -------------------------------------------------------------------------- */1112export interface CoreStrataRect {13 /** 0–1 left edge of the readable safe area. */14 x: number;15 /** 0–1 top edge of the readable safe area. */16 y: number;17 /** 0–1 width of the readable safe area. */18 w: number;19 /** 0–1 height of the readable safe area. */20 h: number;21}2223export interface CoreStrataProps extends React.HTMLAttributes<HTMLDivElement> {24 /** Sediment band density — more, thinner bands and more frequent marker seams at higher values. ~0.4–1.8. */25 density?: number;26 /** Overall luminance/opacity of the strata field (0–1.4). */27 intensity?: number;28 /** Vertical core-scroll + survey-beam speed multiplier. 0 parks the beam at `readingLine` (still legible). */29 speed?: number;30 /** Number of baked diagonal fault breaks that vertically offset the strata columns (clamped 1–6). */31 faults?: number;32 /** 0–1 vertical position of the fixed reading-line datum; also where the survey beam parks when motion stops. */33 readingLine?: number;34 /** Region where a radial quiet-zone scrim dims the strata so foreground text stays readable. */35 safeArea?: CoreStrataRect;36 /** Marker/ignition + reading-line color. Defaults to the fixed Motion Lab amber (#e8a852) when unset. */37 accent?: string;38 /** Deterministic seed for the generated geometry (SSR-stable). */39 seed?: number;40 /** Pause the scroll + beam sweep when scrolled offscreen or the tab is hidden. */41 pauseWhenHidden?: boolean;42 /** Force the static, motion-free variant regardless of system preference. */43 reducedMotion?: boolean;44}4546/* -------------------------------------------------------------------------- */47/* Deterministic model */48/* -------------------------------------------------------------------------- */4950/** mulberry32 — no Math.random / Date.now at render or module scope (SSR-stable). */51function makeRng(seed: number) {52 let a = seed >>> 0;53 return () => {54 a = (a + 0x6d2b79f5) | 0;55 let t = Math.imul(a ^ (a >>> 15), 1 | a);56 t = (t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ t;57// … truncated
What it pulls in
Other registry items
Files it writes
More from motiq
All 100 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Activity Streamactivity-stream | motiq | Components | Free | 1 dep | |
| Adaptive Safe-Zone Gridadaptive-safe-zone-grid | motiq | Components | Free | no deps | |
| Agent Run Timelineagent-run-timeline | motiq | Components | Free | 1 dep | |
| AI Response Streamai-response-stream | motiq | Components | Free | 1 dep | |
| Animated Accordionanimated-accordion | motiq | Components | Free | 2 deps | |
| Animated Buttonanimated-button | motiq | Components | Free | 1 dep | |
| Animated Dialoganimated-dialog | motiq | Components | Free | 2 deps | |
| Animated Gridanimated-grid | motiq | Components | Free | 2 deps |
