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-1

Halo Drift

cellforge/cell-orbit-1
FreeComponent

A circular-masked half-helix that travels diagonally from top-left to bottom-right with a bright strand and soft adjacent trail.

Install it

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

Source

components/ui/cell-orbit-1.tsxcellforge.dev/r/cell-orbit-1.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 CellOrbit1Props = CellForgeCommonProps;
13
14const BASE_OPACITY = 0.08;
15const STRAND_OPACITY = 1;
16const NEAR_STRAND_OPACITY = 0.24;
17const STEP_COUNT = 20;
18const HELIX_LOOP_RADIANS = (Math.PI * 2) / (STEP_COUNT - 1);
19
20export function CellOrbit1({
21 speed = 2.5,
22 animated = true,
23 hoverAnimated = false,
24 ...rest
25}: CellOrbit1Props) {
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: 1700,
35 speed
36 });
37
38 const animationResolver = useMemo<DotAnimationResolver>(() => {
39 return ({ row, col, phase }) => {
40 if (!isWithinCircularMask(row, col)) {
41 return { className: "dmx-inactive" };
42 }
43
44 const t = reducedMotion || phase === "idle" ? 0 : animPhase * STEP_COUNT;
45 const diagonalAxis = row + col;
46 const phaseOffset = t * HELIX_LOOP_RADIANS + diagonalAxis * 0.82;
47 const strandPerpendicular = Math.round(2 * Math.sin(phaseOffset));
48 const cellPerpendicular = col - row;
49 const distanceFromStrand = Math.abs(cellPerpendicular - strandPerpendicular);
50
51 if (distanceFromStrand === 0) {
52 return { style: { opacity: STRAND_OPACITY } };
53 }
54
55 if (distanceFromStrand === 1) {
56 return { style: { opacity: NEAR_STRAND_OPACITY } };
57 }
58
59 return { style: { opacity: BASE_OPACITY } };
60 };
61 }, [reducedMotion, animPhase]);
62
63 return (
64 <CellForgeBase
65 {...rest}
66 size={rest.size ?? 36}
67 dotSize={rest.dotSize ?? 5}
68 speed={speed}
69 pattern="full"
70 animated={animated}
71 phase={matrixPhase}
72 onMouseEnter={onMouseEnter}
73 onMouseLeave={onMouseLeave}
74 reducedMotion={reducedMotion}
75 animationResolver={animationResolver}
76 />
77 );
78}

Facts

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

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