Frosted Glass Wipe

Elegant scene transition through a sliding pane of frosted glass

Installation

$ pnpm dlx shadcn@latest add @remocn/frosted-glass-wipe

Usage

// src/Root.tsx
import { Composition } from "remotion";
import { FrostedGlassWipe } from "@/components/remocn/frosted-glass-wipe";

const FrostedGlassWipeScene = () => (
  <FrostedGlassWipe
    from={<SceneA />
);

export const RemotionRoot = () => (
  <Composition
    id="FrostedGlassWipe"
    component={FrostedGlassWipeScene}
    durationInFrames={90}
    fps={30}
    width={1280}
    height={720}
  />
);

Props

PropTypeDefaultDescription
from
ReactNodeThe outgoing scene. Falls back to a labeled colored panel.
to
ReactNodeThe incoming scene. Falls back to a labeled colored panel.
transitionStart
numberdurationInFrames * 0.4Frame at which the wipe begins
transitionDuration
number30Length of the wipe in frames
glassBlur
number24Backdrop blur radius of the glass pane in pixels
className
stringOptional className for the outer container