BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/@dotmatrix/dotm-circular-14

Rung Shift

dotmatrix/dotm-circular-14
FreeComponent

A shifting DNA ladder where a bright horizontal rung steps row-by-row while side anchors sway and leave soft ghost echoes.

Install it

npx shadcn@latest add https://dotmatrix.zzzzshawn.cloud/r/dotm-circular-14.json

Source

components/ui/dotm-circular-14.tsxdotmatrix.zzzzshawn.cloud/r/dotm-circular-14.json
1"use client";
2
3import { useMemo } from "react";
4
5import { DotMatrixBase } from "@/components/ui/dotmatrix-core";
6import { useDotMatrixPhases } from "@/components/ui/dotmatrix-hooks";
7import { isWithinCircularMask } from "@/components/ui/dotmatrix-core";
8import { useCyclePhase } from "@/components/ui/dotmatrix-hooks";
9import { usePrefersReducedMotion } from "@/components/ui/dotmatrix-hooks";
10import type { DotAnimationResolver, DotMatrixCommonProps } from "@/components/ui/dotmatrix-core";
11
12export type DotmCircular14Props = DotMatrixCommonProps;
13
14const STEP_COUNT = 30;
15const BASE_OPACITY = 0.07;
16const RUNG_OPACITY = 0.95;
17const SIDE_OPACITY = 0.56;
18const GHOST_OPACITY = 0.28;
19
20export function DotmCircular14({
21 speed = 1.75,
22 animated = true,
23 hoverAnimated = false,
24 ...rest
25}: DotmCircular14Props) {
26 const reducedMotion = usePrefersReducedMotion();
27 const { phase: matrixPhase, onMouseEnter, onMouseLeave } = useDotMatrixPhases({
28 animated: Boolean(animated && !reducedMotion),
29 hoverAnimated: Boolean(hoverAnimated && !reducedMotion),
30 speed
31 });
32 const animPhase = useCyclePhase({
33 active: !reducedMotion && matrixPhase !== "idle",
34 cycleMsBase: 1650,
35 speed
36 });
37
38 const resolver = useMemo<DotAnimationResolver>(() => {
39 return ({ row, col, phase }) => {
40 if (!isWithinCircularMask(row, col)) {
41 return { className: "dmx-inactive" };
42 }
43
44 const x = col - 2;
45 const y = row - 2;
46 const phaseStep = reducedMotion || phase === "idle" ? 0 : Math.floor((animPhase) * 10);
47 const activeRow = (phaseStep + 5) % 5;
48 const rowDistance = Math.abs(row - activeRow);
49 const swing = Math.sin((phaseStep / 10) * Math.PI * 2 + y * 0.9);
50 const leftAnchor = Math.round(1 + swing);
51 const rightAnchor = 4 - leftAnchor;
52
53 let opacity = BASE_OPACITY;
54 if (row === activeRow && col >= leftAnchor && col <= rightAnchor) {
55 opacity = RUNG_OPACITY;
56 } else if ((col === leftAnchor || col === rightAnchor) && rowDistance <= 1) {
57 opacity = SIDE_OPACITY;
58 } else if ((col === leftAnchor || col === rightAnchor) && rowDistance === 2) {
59 opacity = GHOST_OPACITY;
60 }
61
62 if (x === 0 && y === 0 && rowDistance <= 1) {
63 return { style: { opacity: Math.max(opacity, SIDE_OPACITY) } };
64 }
65
66 return { style: { opacity } };
67 };
68 }, [reducedMotion, animPhase]);
69
70 return (
71 <DotMatrixBase
72 {...rest}
73 size={rest.size ?? 36}
74// … truncated

Facts

Registry
@dotmatrix
Type
registry:ui
Access
Free
Files written
0
Licence
the repository states none
First indexed
2026-08-03
Last confirmed
yesterday

Go to the source

dotmatrix.zzzzshawn.cloud zzzzshawn/matrix on GitHub Raw registry item This item as JSON

More from @dotmatrix

All 91 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
All Dot Matrix Loadersall@dotmatrixComponentsFreeno deps
Square Spiraldotm-3x3-1@dotmatrixComponentsFreeno deps
Frame Chasedotm-3x3-10@dotmatrixComponentsFreeno deps
Glyph Pulsedotm-3x3-11@dotmatrixComponentsFreeno deps
Drop Rippledotm-3x3-12@dotmatrixComponentsFreeno deps
Right Surgedotm-3x3-13@dotmatrixComponentsFreeno deps
Comet Traildotm-3x3-14@dotmatrixComponentsFreeno deps
Echo Ringsdotm-3x3-15@dotmatrixComponentsFreeno 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