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

Twin Helix

cellforge/cell-orbit-13
FreeComponent

A circular-masked twin-helix: mirrored side strands weave inward and outward with intermittent interior bridge pulses.

Install it

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

Source

components/ui/cell-orbit-13.tsxcellforge.dev/r/cell-orbit-13.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 { usePrefersReducedMotion } from "@/components/ui/cellforge-hooks";
9import { useSteppedCycle } from "@/components/ui/cellforge-hooks";
10import type { DotAnimationResolver, CellForgeCommonProps } from "@/components/ui/cellforge-core";
11
12export type CellOrbit13Props = CellForgeCommonProps;
13
14const STEP_COUNT = 28;
15const BASE_OPACITY = 0.07;
16const STRAND_OPACITY = 0.95;
17const NEAR_STRAND_OPACITY = 0.5;
18const BRIDGE_OPACITY = 0.3;
19
20export function CellOrbit13({
21 speed = 1.55,
22 animated = true,
23 hoverAnimated = false,
24 ...rest
25}: CellOrbit13Props) {
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 step = useSteppedCycle({
33 active: !reducedMotion && matrixPhase !== "idle",
34 cycleMsBase: 1750,
35 steps: STEP_COUNT,
36 speed,
37 });
38
39 const resolver = useMemo<DotAnimationResolver>(() => {
40 return ({ row, col, phase }) => {
41 if (!isWithinCircularMask(row, col)) {
42 return { className: "dmx-inactive" };
43 }
44
45 const x = col - 2;
46 const y = row - 2;
47 const t = reducedMotion || phase === "idle" ? 0 : (step / STEP_COUNT) * Math.PI * 2;
48
49 const strandOffset = Math.sin(y * 1.35 + t * 1.3) * 1.15;
50 const leftStrand = -strandOffset;
51 const rightStrand = strandOffset;
52 const leftDistance = Math.abs(x - leftStrand);
53 const rightDistance = Math.abs(x - rightStrand);
54 const strandDistance = Math.min(leftDistance, rightDistance);
55 const bridgeOn = Math.cos(y * 2 + t * 2.1) > 0.55;
56 const isBetweenStrands = x > Math.min(leftStrand, rightStrand) && x < Math.max(leftStrand, rightStrand);
57
58 let opacity = BASE_OPACITY;
59 if (strandDistance < 0.34) {
60 opacity = STRAND_OPACITY;
61 } else if (strandDistance < 0.8) {
62 opacity = NEAR_STRAND_OPACITY;
63 } else if (bridgeOn && isBetweenStrands) {
64 opacity = BRIDGE_OPACITY;
65 }
66
67 return { style: { opacity } };
68 };
69 }, [reducedMotion, step]);
70
71 return (
72 <CellForgeBase
73 {...rest}
74 size={rest.size ?? 36}
75// … 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