BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/framecn/frosted-glass-wipe

Frosted Glass Wipe

framecn/frosted-glass-wipe
FreeComponent

Elegant scene transition through a sliding pane of frosted glass.

Install it

npx shadcn@latest add https://framecn.dev/r/frosted-glass-wipe.json

Source

registry/bases/editframe/components/frosted-glass-wipe/index.tsxframecn.dev/r/frosted-glass-wipe.json
1"use client";
2
3import { Timegroup } from "@editframe/react";
4import type { ReactNode, CSSProperties } from "react";
5
6const FONT_FAMILY =
7 "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";
8
9const DefaultPanel = ({ label, color }: { label: string; color: string }) => (
10 <div
11 style={{
12 alignItems: "center",
13 background: color,
14 color: "white",
15 display: "flex",
16 fontFamily: FONT_FAMILY,
17 fontSize: 96,
18 fontWeight: 700,
19 inset: 0,
20 justifyContent: "center",
21 letterSpacing: "-0.05em",
22 position: "absolute",
23 }}
24 >
25 {label}
26 </div>
27);
28
29export interface FrostedGlassWipeProps {
30 from?: ReactNode;
31 to?: ReactNode;
32 transitionStart?: number;
33 transitionDuration?: number;
34 glassBlur?: number;
35 speed?: number;
36 fps?: number;
37 durationInFrames?: number;
38 width?: number;
39 height?: number;
40 background?: string;
41 className?: string;
42}
43
44export const FrostedGlassWipe = ({
45 from,
46 to,
47 transitionStart = 36,
48 transitionDuration = 30,
49 glassBlur = 24,
50 speed = 1,
51 fps = 30,
52 durationInFrames = 90,
53 width = 1280,
54 height = 720,
55 background = "black",
56 className,
57}: FrostedGlassWipeProps) => {
58 const safeSpeed = Math.max(0.01, speed);
59 const durationMs = (durationInFrames / fps) * 1000;
60 const frameMs = 1000 / fps;
61 const startMs = transitionStart * frameMs;
62 const durationMsCalc = (transitionDuration * frameMs) / safeSpeed;
63
64 const fromContent = from ?? <DefaultPanel label="Scene A" color="#0ea5e9" />;
65 const toContent = to ?? <DefaultPanel label="Scene B" color="#9333ea" />;
66
67 const containerStyle: CSSProperties = {
68 background,
69 height,
70 overflow: "hidden",
71 position: "relative",
72 width,
73 };
74
75 return (
76 <Timegroup
77 className={className}
78 duration={`${durationMs}ms`}
79 mode="fixed"
80 style={containerStyle}
81 >
82 <>
83 <style>{`
84 @keyframes framecn-frosted-glass {
85 from { transform: translateX(-110%); }
86 to { transform: translateX(110%); }
87 }
88 @keyframes framecn-frosted-show {
89 from { opacity: 0; }
90 to { opacity: 1; }
91 }
92 `}</style>
93 <div style={{ inset: 0, position: "absolute" }}>{fromContent}</div>
94 <div
95 style={{
96 animation: `framecn-frosted-show 1ms linear ${startMs + durationMsCalc / 2}ms forwards`,
97 inset: 0,
98 position: "absolute",
99 }}
100 >
101// … truncated

What it pulls in

npm packages

  • remotion

Files it writes

  • registry/bases/editframe/components/frosted-glass-wipe/index.tsx

Facts

Registry
framecn
Type
registry:component
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-03
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 Generate Overlayai-generate-overlayframecnComponentsFree1 dep
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
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