Serpent
dotmatrix/dotm-3x3-9FreeComponent
A narrow pulse travels the full serpentine path across all nine cells, row by row.
Install it
npx shadcn@latest add https://dotmatrix.zzzzshawn.cloud/r/dotm-3x3-9.jsonSource
1"use client";23import type { CSSProperties } from "react";45import { createDotm3x3Component } from "@/components/ui/dotmatrix-core";6import { snakePath3NormFromIndex, snakePath3OrderValue, wave3PathOpacityFromNorm } from "@/components/ui/dotmatrix-core";7import type { DotAnimationResolver, DotMatrixCommonProps } from "@/components/ui/dotmatrix-core";89export type Dotm3x3_9Props = DotMatrixCommonProps;1011const animationResolver: DotAnimationResolver = ({ isActive, index, reducedMotion, phase }) => {12 if (!isActive) {13 return { className: "dmx-inactive" };14 }1516 const order = snakePath3OrderValue(index);17 const path = snakePath3NormFromIndex(index);18 const style = {19 "--dmx-snake-order": order,20 "--dmx-path": path21 } as CSSProperties;2223 if (reducedMotion || phase === "idle") {24 return {25 style: {26 ...style,27 opacity: wave3PathOpacityFromNorm(path)28 }29 };30 }3132 return { className: "dmx-snake-path-3", style };33};3435export const Dotm3x3_9 = createDotm3x3Component("Dotm3x3_9", animationResolver, 1.75);
More from @dotmatrix
All 91 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| All Dot Matrix Loadersall | @dotmatrix | Components | Free | no deps | |
| Square Spiraldotm-3x3-1 | @dotmatrix | Components | Free | no deps | |
| Frame Chasedotm-3x3-10 | @dotmatrix | Components | Free | no deps | |
| Glyph Pulsedotm-3x3-11 | @dotmatrix | Components | Free | no deps | |
| Drop Rippledotm-3x3-12 | @dotmatrix | Components | Free | no deps | |
| Right Surgedotm-3x3-13 | @dotmatrix | Components | Free | no deps | |
| Comet Traildotm-3x3-14 | @dotmatrix | Components | Free | no deps | |
| Echo Ringsdotm-3x3-15 | @dotmatrix | Components | Free | no deps |
