BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/@cellforge/cell-orbit-17

Checker Shift

cellforge/cell-orbit-17
FreeComponent

Braille-biased checker phases alternate in stepped shifts, keeping rails pronounced while the center cross supports readability.

Install it

npx shadcn@latest add https://cellforge.dev/r/cell-orbit-17.json

Source

components/ui/cell-orbit-17.tsxcellforge.dev/r/cell-orbit-17.json
1"use client";
2
3import { useMemo } from "react";
4
5import { 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";
11
12export type CellOrbit17Props = CellForgeCommonProps;
13
14const BASE_OPACITY = 0.07;
15const MID_OPACITY = 0.34;
16const HIGH_OPACITY = 0.95;
17/** Discrete checker frames per loop (must stay integer for `(row + col + t) % 2`). */
18const CHECKER_STEPS = 4;
19
20export function CellOrbit17({
21 speed = 1.55,
22 animated = true,
23 hoverAnimated = false,
24 ...rest
25}: CellOrbit17Props) {
26 const reducedMotion = usePrefersReducedMotion();
27 const { phase: matrixPhase, onMouseEnter, onMouseLeave } = useCellForgePhases({
28 animated: Boolean(animated && !reducedMotion),
29 hoverAnimated: Boolean(hoverAnimated && !reducedMotion),
30 speed
31 });
32 const animPhase = useCyclePhase({
33 active: !reducedMotion && matrixPhase !== "idle",
34 cycleMsBase: 1500,
35 speed
36 });
37
38 const resolver = useMemo<DotAnimationResolver>(() => {
39 return ({ row, col, phase: dmxPhase }) => {
40 if (!isWithinCircularMask(row, col)) {
41 return { className: "dmx-inactive" };
42 }
43
44 const holdStill = reducedMotion || dmxPhase === "idle";
45 const t = holdStill
46 ? 0
47 : Math.floor(animPhase * CHECKER_STEPS) % CHECKER_STEPS;
48 const parity = (row + col + t) % 2;
49 const brailleBias = col === 1 || col === 3;
50 const centerBias = row === 2 || col === 2;
51
52 let opacity = BASE_OPACITY;
53 if (parity === 0 && brailleBias) {
54 opacity = HIGH_OPACITY;
55 } else if (parity === 0 || centerBias) {
56 opacity = MID_OPACITY;
57 } else if (brailleBias) {
58 opacity = 0.24;
59 }
60
61 return { style: { opacity } };
62 };
63 }, [reducedMotion, animPhase]);
64
65 return (
66 <CellForgeBase
67 {...rest}
68 size={rest.size ?? 36}
69 dotSize={rest.dotSize ?? 5}
70 speed={speed}
71 pattern="full"
72 animated={animated}
73 phase={matrixPhase}
74 onMouseEnter={onMouseEnter}
75 onMouseLeave={onMouseLeave}
76 reducedMotion={reducedMotion}
77 animationResolver={resolver}
78 />
79 );
80}

Facts

Registry
@cellforge
Type
registry:ui
Access
Free
Files written
0
Licence
MIT
First indexed
2026-08-03
Last confirmed
yesterday

Go to the source

cellforge.dev cellforge-dev/cellforge on GitHub Raw registry item This item as JSON

More from @cellforge

All 71 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
All CellForge Loadersall@cellforgeComponentsFreeno deps
Core Spokescell-angle-1@cellforgeComponentsFreeno deps
Column Rakecell-angle-10@cellforgeComponentsFreeno deps
Shelf Descentcell-angle-11@cellforgeComponentsFreeno deps
Skew Driftcell-angle-12@cellforgeComponentsFreeno deps
Serpent Zipcell-angle-13@cellforgeComponentsFreeno deps
Pillar Sweepcell-angle-14@cellforgeComponentsFreeno deps
Tripod Handoffcell-angle-15@cellforgeComponentsFreeno deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex