Drop Ripple
dotmatrix/dotm-3x3-12FreeComponent
Concentric ripples expand from the center of the 3×3 grid, like a stone dropped in still water.
Install it
npx shadcn@latest add https://dotmatrix.zzzzshawn.cloud/r/dotm-3x3-12.jsonSource
1"use client";23import type { CSSProperties } from "react";45import { createDotm3x3Component } from "@/components/ui/dotmatrix-core";6import type { DotAnimationResolver, DotMatrixCommonProps } from "@/components/ui/dotmatrix-core";78export type Dotm3x3_12Props = DotMatrixCommonProps;910const animationResolver: DotAnimationResolver = ({11 isActive,12 distanceFromCenter,13 reducedMotion,14 phase15}) => {16 if (!isActive) {17 return { className: "dmx-inactive" };18 }1920 const ring = Math.max(0, Math.min(2, Math.round(distanceFromCenter)));21 const style = { "--dmx-distance": distanceFromCenter } as CSSProperties;2223 if (reducedMotion || phase === "idle") {24 return {25 style: {26 ...style,27 opacity: 0.06 + (1 - ring / 2) * 0.8228 }29 };30 }3132 return { className: "dmx-distance-ripple-3", style };33};3435export const Dotm3x3_12 = createDotm3x3Component("Dotm3x3_12", 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 | |
| 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 |
