Frame Chase
dotmatrix/dotm-3x3-10FreeComponent
A highlight runs clockwise around the outer frame while the center cell holds a steady pulse.
Install it
npx shadcn@latest add https://dotmatrix.zzzzshawn.cloud/r/dotm-3x3-10.jsonSource
1"use client";23import type { CSSProperties } from "react";45import { createDotm3x3Component } from "@/components/ui/dotmatrix-core";6import {7 isCenterCell3,8 outerRingClockwise3NormFromIndex,9 outerRingClockwise3OrderValue,10 wave3PathOpacityFromNorm11} from "@/components/ui/dotmatrix-core";12import type { DotAnimationResolver, DotMatrixCommonProps } from "@/components/ui/dotmatrix-core";1314export type Dotm3x3_10Props = DotMatrixCommonProps;1516const animationResolver: DotAnimationResolver = ({17 isActive,18 index,19 row,20 col,21 reducedMotion,22 phase23}) => {24 if (!isActive) {25 return { className: "dmx-inactive" };26 }2728 if (isCenterCell3(row, col)) {29 if (reducedMotion || phase === "idle") {30 return { style: { opacity: 0.2 } };31 }32 return { className: "dmx-core-pulse-3" };33 }3435 const order = outerRingClockwise3OrderValue(index);36 const path = outerRingClockwise3NormFromIndex(index);37 const style = {38 "--dmx-frame-order": order,39 "--dmx-path": path40 } as CSSProperties;4142 if (reducedMotion || phase === "idle") {43 return {44 style: {45 ...style,46 opacity: wave3PathOpacityFromNorm(path)47 }48 };49 }5051 return { className: "dmx-frame-chase-3", style };52};5354export const Dotm3x3_10 = createDotm3x3Component("Dotm3x3_10", 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 | |
| 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 | |
| Smiley Spindotm-3x3-16 | @dotmatrix | Components | Free | no deps |
