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-angle-4

Vertex Chase

cellforge/cell-angle-4
FreeComponent

Three staggered heads chase around the triangle perimeter, leaving short fading tails while all dots stay fixed in place.

Install it

npx shadcn@latest add https://cellforge.dev/r/cell-angle-4.json

Source

components/ui/cell-angle-4.tsxcellforge.dev/r/cell-angle-4.json
1"use client";
2
3import type { CSSProperties } from "react";
4
5import { cx } from "@/components/ui/cellforge-core";
6import { resolveDmxColorTokens } from "@/components/ui/cellforge-core";
7import { useCellForgePhases } from "@/components/ui/cellforge-hooks";
8import { styleOpacity, stylePx } from "@/components/ui/cellforge-core";
9import { remapOpacityToTriplet } from "@/components/ui/cellforge-core";
10import { dmxBloomHaloSpreadClass, dmxBloomRootActive, dmxDotBloomParts } from "@/components/ui/cellforge-core";
11import { usePrefersReducedMotion } from "@/components/ui/cellforge-hooks";
12import { useSteppedCycle } from "@/components/ui/cellforge-hooks";
13import type { CellForgeCommonProps } from "@/components/ui/cellforge-core";
14
15export type CellAngle4Props = CellForgeCommonProps;
16
17const MATRIX_SIZE = 7;
18const STEP_COUNT = 28;
19const BASE_OPACITY = 0.0;
20const MID_OPACITY = 0.0;
21const HIGH_OPACITY = 0.96;
22const TRAIL_LEVELS = [HIGH_OPACITY, 0.52, 0.3] as const;
23
24const TRIANGLE_CELLS = new Set([
25 "1,3",
26 "2,2",
27 "2,4",
28 "3,1",
29 "3,3",
30 "3,5",
31 "4,0",
32 "4,2",
33 "4,4",
34 "4,6"
35]);
36
37const PERIMETER_PATH: ReadonlyArray<readonly [number, number]> = [
38 [1, 3],
39 [2, 2],
40 [3, 1],
41 [4, 0],
42 [4, 2],
43 [4, 4],
44 [4, 6],
45 [3, 5],
46 [2, 4]
47];
48
49function isWithinTriangleMask(row: number, col: number): boolean {
50 if (row < 0 || row >= MATRIX_SIZE || col < 0 || col >= MATRIX_SIZE) {
51 return false;
52 }
53
54 return TRIANGLE_CELLS.has(`${row},${col}`);
55}
56
57export function CellAngle4({
58 size = 30,
59 dotSize = 6.5,
60 color = "currentColor",
61 colorPreset,
62 ariaLabel = "Loading",
63 className,
64 muted = false,
65 bloom = false,
66 halo = 0,
67 dotClassName,
68 dotShape = "circle",
69 speed = 1.5,
70 animated = true,
71 hoverAnimated = false,
72 cellPadding,
73 opacityBase,
74 opacityMid,
75 opacityPeak
76}: CellAngle4Props) {
77 const reducedMotion = usePrefersReducedMotion();
78 const { phase: matrixPhase, onMouseEnter, onMouseLeave } = useCellForgePhases({
79 animated: Boolean(animated && !reducedMotion),
80 hoverAnimated: Boolean(hoverAnimated && !reducedMotion),
81 speed
82 });
83 const step = useSteppedCycle({
84 active: !reducedMotion && matrixPhase !== "idle",
85 cycleMsBase: 1450,
86 steps: STEP_COUNT,
87 speed,
88 });
89
90 const frame = reducedMotion || matrixPhase === "idle" ? 0 : step;
91 const segmentLength = Math.max(1, Math.floor(STEP_COUNT / 3));
92
93 const gap =
94 cellPadding ?? Math.max(1, Math.floor((size - dotSize * MATRIX_SIZE) / (MATRIX_SIZE - 1)));
95// … truncated

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