BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/cult/ui/bg-animated-fractal-dot-grid

bg-animated-fractal-dot-grid

cult-ui/bg-animated-fractal-dot-grid
FreeComponent

Background animated fractal dot grid with performance optimization and responsive design

Install it

npx shadcn@latest add https://raw.githubusercontent.com/nolly-studio/cult-ui/HEAD/apps/www/public/r/styles/default/bg-animated-fractal-dot-grid.json

Source

registry/default/ui/bg-animated-fractal-dot-grid.tsxraw.githubusercontent.com/nolly-studio/cult-ui/HEAD/apps/www/public/r/styles/default/bg-animated-fractal-dot-grid.json · first 6 KB
1"use client"
2
3import React, { useCallback, useEffect, useMemo, useRef, useState } from "react"
4import { AnimatePresence, motion } from "motion/react"
5
6interface FractalDotGridProps {
7 /** Size of each dot in pixels */
8 dotSize?: number
9 /** Spacing between dots in pixels */
10 dotSpacing?: number
11 /** Opacity of dots (0-1) */
12 dotOpacity?: number
13 /** Intensity of the wave effect when hovering */
14 waveIntensity?: number
15 /** Radius of the wave effect in pixels */
16 waveRadius?: number
17 /** Color of the dots (supports any valid CSS color) */
18 dotColor?: string
19 /** Color of the dot glow effect (supports any valid CSS color) */
20 glowColor?: string
21 /** Enable or disable the noise overlay */
22 enableNoise?: boolean
23 /** Opacity of the noise overlay (0-1) */
24 noiseOpacity?: number
25 /** Enable or disable the mouse glow effect */
26 enableMouseGlow?: boolean
27 /** Set the initial performance level */
28 initialPerformance?: "low" | "medium" | "high"
29}
30
31const NoiseSVG = React.memo(() => (
32 <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%">
33 <filter id="noise">
34 <feTurbulence
35 type="fractalNoise"
36 baseFrequency="0.65"
37 numOctaves="3"
38 stitchTiles="stitch"
39 />
40 </filter>
41 <rect width="100%" height="100%" filter="url(#noise)" />
42 </svg>
43))
44
45NoiseSVG.displayName = "NoiseSVG"
46
47const NoiseOverlay: React.FC<{ opacity: number }> = ({ opacity }) => (
48 <div
49 className="absolute inset-0 h-full w-full mix-blend-overlay"
50 style={{ opacity }}
51 >
52 <NoiseSVG />
53 </div>
54)
55
56const useResponsive = () => {
57 const [windowSize, setWindowSize] = useState({
58 width: typeof window !== "undefined" ? window.innerWidth : 0,
59 height: typeof window !== "undefined" ? window.innerHeight : 0,
60 })
61
62 useEffect(() => {
63 const handleResize = () => {
64 setWindowSize({
65 width: window.innerWidth,
66 height: window.innerHeight,
67 })
68 }
69
70 window.addEventListener("resize", handleResize)
71 return () => window.removeEventListener("resize", handleResize)
72 }, [])
73
74 return {
75 isMobile: windowSize.width < 768,
76 isTablet: windowSize.width >= 768 && windowSize.width < 1024,
77 isDesktop: windowSize.width >= 1024,
78 }
79}
80
81const usePerformance = (
82 initialPerformance: "low" | "medium" | "high" = "medium"
83) => {
84 const [performance, setPerformance] = useState(initialPerformance)
85 const [fps, setFps] = useState(60)
86
87 useEffect(() => {
88 let frameCount = 0
89// … truncated

What it pulls in

npm packages

  • motion

Files it writes

  • registry/default/ui/bg-animated-fractal-dot-grid.tsx

Facts

Registry
cult/ui
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-01
Last confirmed
today

Go to the source

www.cult-ui.com nolly-studio/cult-ui on GitHub Raw registry item This item as JSON

More from cult/ui

All 157 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
ai-instructionsai-instructionscult/uiComponentsFree2 deps
ai-instructions-demoai-instructions-democult/uiComponentsFreeno deps
animated-numberanimated-numbercult/uiComponentsFree1 dep
animated-number-demoanimated-number-democult/uiComponentsFreeno deps
bg-animate-buttonbg-animate-buttoncult/uiComponentsFreeno deps
bg-animate-button-demobg-animate-button-democult/uiComponentsFreeno deps
bg-animated-fractal-dot-grid-demobg-animated-fractal-dot-grid-democult/uiComponentsFreeno deps
bg-animated-gradientbg-animated-gradientcult/uiComponentsFree1 dep
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