Glyph Cluster
cellforge/cell-orbit-15FreeComponent
Braille-inspired grouped dot motifs cycle through rails, bridges, and cross forms inside the circular mask with crisp tiered opacity.
Install it
npx shadcn@latest add https://cellforge.dev/r/cell-orbit-15.jsonSource
1"use client";23import { useMemo } from "react";45import { CellForgeBase } from "@/components/ui/cellforge-core";6import { useCellForgePhases } from "@/components/ui/cellforge-hooks";7import { isWithinCircularMask } from "@/components/ui/cellforge-core";8import { useCyclePhase } from "@/components/ui/cellforge-hooks";9import { usePrefersReducedMotion } from "@/components/ui/cellforge-hooks";10import type { DotAnimationResolver, CellForgeCommonProps } from "@/components/ui/cellforge-core";1112export type CellOrbit15Props = CellForgeCommonProps;1314const BASE_OPACITY = 0.07;15const MID_OPACITY = 0.34;16const HIGH_OPACITY = 0.95;1718const BRAILLE_PHASES: ReadonlyArray<ReadonlySet<string>> = [19 new Set(["1,1", "2,1", "3,1", "1,3", "2,3", "3,3"]), // rails20 new Set(["1,1", "2,1", "3,1", "2,2", "1,3", "2,3", "3,3"]), // center bridge21 new Set(["1,1", "1,2", "1,3", "2,1", "2,3", "3,1", "3,2", "3,3"]), // top+bottom bars22 new Set(["1,1", "3,1", "2,2", "1,3", "3,3"]), // X-cross23 new Set(["2,1", "1,2", "3,2", "2,3"]), // plus motif24 new Set(["1,1", "2,1", "2,2", "2,3", "3,3"]) // diagonal sweep25];2627export function CellOrbit15({28 speed = 1.65,29 animated = true,30 hoverAnimated = false,31 ...rest32}: CellOrbit15Props) {33 const reducedMotion = usePrefersReducedMotion();34 const { phase: matrixPhase, onMouseEnter, onMouseLeave } = useCellForgePhases({35 animated: Boolean(animated && !reducedMotion),36 hoverAnimated: Boolean(hoverAnimated && !reducedMotion),37 speed38 });39 const animPhase = useCyclePhase({40 active: !reducedMotion && matrixPhase !== "idle",41 cycleMsBase: 1680,42 speed43 });4445 const resolver = useMemo<DotAnimationResolver>(() => {46 return ({ row, col, phase }) => {47 if (!isWithinCircularMask(row, col)) {48 return { className: "dmx-inactive" };49 }5051 const x = col - 2;52 const y = row - 2;53 const ring = Math.sqrt(x * x + y * y);54 const count = BRAILLE_PHASES.length;55 const phaseIndex =56 reducedMotion || phase === "idle"57 ? 058 : (() => {59 const t = Number.isFinite(animPhase) ? animPhase : 0;60 const raw = Math.floor(t * count);61 return ((raw % count) + count) % count;62 })();63 const activePattern = BRAILLE_PHASES[phaseIndex]!;64 const key = `${row},${col}`;65 const inPattern = activePattern.has(key);6667 const previousIndex = (phaseIndex + BRAILLE_PHASES.length - 1) % BRAILLE_PHASES.length;68// … truncated
More from @cellforge
All 71 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| All CellForge Loadersall | @cellforge | Components | Free | no deps | |
| Core Spokescell-angle-1 | @cellforge | Components | Free | no deps | |
| Column Rakecell-angle-10 | @cellforge | Components | Free | no deps | |
| Shelf Descentcell-angle-11 | @cellforge | Components | Free | no deps | |
| Skew Driftcell-angle-12 | @cellforge | Components | Free | no deps | |
| Serpent Zipcell-angle-13 | @cellforge | Components | Free | no deps | |
| Pillar Sweepcell-angle-14 | @cellforge | Components | Free | no deps | |
| Tripod Handoffcell-angle-15 | @cellforge | Components | Free | no deps |
