BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/framecn/ai-generate-overlay

AI Generate Overlay

framecn/ai-generate-overlay
FreeComponent

Source image blurs under a shimmering dot grid and a pulsing 'Generating…' pill before a new image fades in.

Install it

npx shadcn@latest add https://framecn.dev/r/ai-generate-overlay.json

Source

registry/bases/editframe/components/ai-generate-overlay/index.tsxframecn.dev/r/ai-generate-overlay.json · first 6 KB
1"use client";
2
3import { Timegroup } from "@editframe/react";
4import type { CSSProperties } from "react";
5
6export interface AIGenerateOverlayProps {
7 maxBlur?: number;
8 blurStartFrame?: number;
9 blurPeakFrame?: number;
10 revealStartFrame?: number;
11 pillText?: string;
12 accent?: string;
13 background?: string;
14 sourceImageBg?: string;
15 generatedImageBg?: string;
16 dotColor?: string;
17 dotSize?: number;
18 dotSpacing?: number;
19 speed?: number;
20 fps?: number;
21 durationInFrames?: number;
22 className?: string;
23}
24
25const FONT_FAMILY =
26 "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";
27
28const DEFAULT_SOURCE_BG =
29 "linear-gradient(135deg, #6b3a1a 0%, #d4a574 50%, #8b4513 100%)";
30
31const DEFAULT_GENERATED_BG =
32 "radial-gradient(ellipse at center, #d4a574 0%, #8b4513 22%, #2a1a10 42%), linear-gradient(180deg, #1a1410 0%, #0a0806 50%, #1a1410 100%)";
33
34const hexWithAlpha = (hex: string, alpha: number): string => {
35 const m = /^#([0-9a-f]{6})$/i.exec(hex);
36 if (!m) {
37 return hex;
38 }
39 const int = Number.parseInt(m[1], 16);
40 /* eslint-disable no-bitwise */
41 const r = (int >> 16) & 255;
42 const g = (int >> 8) & 255;
43 const b = int & 255;
44 /* eslint-enable no-bitwise */
45 return `rgba(${r}, ${g}, ${b}, ${alpha})`;
46};
47
48export const AIGenerateOverlay = ({
49 maxBlur = 20,
50 blurStartFrame = 20,
51 blurPeakFrame = 40,
52 revealStartFrame = 110,
53 pillText = "Generating…",
54 accent = "#a78bfa",
55 background = "#050505",
56 sourceImageBg = DEFAULT_SOURCE_BG,
57 generatedImageBg = DEFAULT_GENERATED_BG,
58 dotColor = "#ffffff",
59 dotSize = 1.2,
60 dotSpacing = 20,
61 speed = 1,
62 fps = 30,
63 durationInFrames = 150,
64 className,
65}: AIGenerateOverlayProps) => {
66 const safeSpeed = Math.max(0.01, speed);
67 const durationMs = ((durationInFrames / fps) * 1000) / safeSpeed;
68
69 const blurStartPercent = (blurStartFrame / durationInFrames) * 100;
70 const blurPeakPercent = (blurPeakFrame / durationInFrames) * 100;
71 const revealStartPercent = (revealStartFrame / durationInFrames) * 100;
72
73 const style = {
74 background,
75 fontFamily: FONT_FAMILY,
76 height: "100%",
77 position: "relative",
78 width: "100%",
79 } as CSSProperties;
80
81 return (
82 <Timegroup
83 className={className}
84 duration={`${durationMs}ms`}
85 mode="fixed"
86 style={style}
87 >
88 <>
89 <style>{`
90 @keyframes framecn-ai-overlay-blur {
91 from {
92 filter: blur(0px) scale(1.06);
93 opacity: 1;
94 }
95// … truncated

What it pulls in

npm packages

  • remotion

Files it writes

  • registry/bases/editframe/components/ai-generate-overlay/index.tsx

Facts

Registry
framecn
Type
registry:component
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-13
Last confirmed
today

Go to the source

framecn.dev shadcn-labs/framecn on GitHub Raw registry item This item as JSON

More from framecn

All 101 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AI Generation Canvasai-generation-canvasframecnComponentsFree1 dep
Animated Bar Chartanimated-bar-chartframecnComponentsFree1 dep
Animated Line Chartanimated-line-chartframecnComponentsFree1 dep
BackdropbackdropframecnComponentsFree1 dep
Blur Out Upblur-out-upframecnComponentsFree1 dep
Blur Revealblur-revealframecnComponentsFree1 dep
Bounding Box Selectorbounding-box-selectorframecnComponentsFree1 dep
Browser Flowbrowser-flowframecnComponentsFree1 dep

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex