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

Phase Orb

cellforge/cell-orbit-6
FreeComponent

An off-center orbiting energy point traces a phase-shifted loop, creating a drifting orbital glow inside the circular matrix.

Install it

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

Source

components/ui/cell-orbit-6.tsxcellforge.dev/r/cell-orbit-6.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 CellOrbit6Props = CellForgeCommonProps;
13
14const BASE_OPACITY = 0.08;
15const ORBIT_OPACITY = 0.96;
16const NEAR_ORBIT_OPACITY = 0.34;
17
18export function CellOrbit6({
19 speed = 1.6,
20 animated = true,
21 hoverAnimated = false,
22 ...rest
23}: CellOrbit6Props) {
24 const reducedMotion = usePrefersReducedMotion();
25 const { phase: matrixPhase, onMouseEnter, onMouseLeave } = useCellForgePhases({
26 animated: Boolean(animated && !reducedMotion),
27 hoverAnimated: Boolean(hoverAnimated && !reducedMotion),
28 speed
29 });
30 const phase = useCyclePhase({
31 active: !reducedMotion && matrixPhase !== "idle",
32 cycleMsBase: 1700,
33 speed
34 });
35
36 const resolver = useMemo<DotAnimationResolver>(() => {
37 return ({ row, col, phase: p }) => {
38 if (!isWithinCircularMask(row, col)) {
39 return { className: "dmx-inactive" };
40 }
41
42 const x = col - 2;
43 const y = row - 2;
44 const t = reducedMotion || p === "idle" ? 0 : (phase) * Math.PI * 2;
45 const angle = Math.atan2(y, x);
46 const ring = Math.sqrt(x * x + y * y);
47
48 const angularPhase = ((angle - t * 0.95 + Math.PI * 4) % (Math.PI * 2)) / ((Math.PI * 2) / 3);
49 const sectorPos = angularPhase - Math.floor(angularPhase);
50 const sectorPulse = Math.max(0, 1 - Math.abs(sectorPos - 0.5) * 2);
51 const ringPhase = 0.5 + 0.5 * Math.cos(ring * 3.2 + t * 1.7);
52 const score = 0.74 * sectorPulse + 0.26 * ringPhase;
53
54 let opacity = BASE_OPACITY;
55 if (score > 0.84) {
56 opacity = ORBIT_OPACITY;
57 } else if (score > 0.63) {
58 opacity = 0.62;
59 } else if (score > 0.44) {
60 opacity = NEAR_ORBIT_OPACITY;
61 }
62
63 if (x === 0 && y === 0) {
64 return { style: { opacity: Math.max(opacity, NEAR_ORBIT_OPACITY) } };
65 }
66 return { style: { opacity } };
67 };
68 }, [reducedMotion, phase]);
69
70 return (
71 <CellForgeBase
72 {...rest}
73 size={rest.size ?? 36}
74 dotSize={rest.dotSize ?? 5}
75 speed={speed}
76 pattern="full"
77// … truncated

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