About
A WebGL iris of blur closes over the current screen, swaps the content at its darkest point and opens on the next one, driven by a transitionKey. Respects prefers-reduced-motion.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Aperture Blur Transition to your project and fits it to your theme.
Code
How Aperture Blur Transition is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import { useEffect, useState } from "react";
import Component from "@/components/ui/aperture-blur-transition";
const SLIDES = [
{
bg: "from-violet-600 via-fuchsia-500 to-rose-400",
eyebrow: "Chapter 01",
title: "Focus pulls the next frame in",
},
{
bg: "from-emerald-600 via-teal-500 to-cyan-400",
eyebrow: "Chapter 02",
title: "An iris of blur, drawn on the GPU",
},
{
bg: "from-orange-600 via-amber-500 to-yellow-300",
eyebrow: "Chapter 03",
title: "Content swaps at the darkest point",
},
];
// The effect runs just under the cycle length, so any capture lands mid-transition.
const STEP_MS = 2100;
const DURATION_MS = 2000;
export default function DemoOne() {
const [index, setIndex] = useState(0);
useEffect(() => {
const id = setInterval(
() => setIndex((i) => (i + 1) % SLIDES.length),
STEP_MS
);
return () => clearInterval(id);
}, []);
const slide = SLIDES[index];
return (
<div className="flex min-h-[640px] w-full items-center justify-center bg-background p-6">
<Component
className="w-full max-w-5xl overflow-hidden rounded-3xl"
duration={DURATION_MS}
transitionKey={index}
>
<div
className={`flex h-[560px] w-full flex-col justify-between bg-gradient-to-br p-10 ${slide.bg}`}
>
<span className="font-medium text-sm text-white/80 uppercase tracking-[0.2em]">
{slide.eyebrow}
</span>
<h2 className="max-w-3xl font-semibold text-6xl text-white leading-[1.05] tracking-tight">
{slide.title}
</h2>
</div>
</Component>
</div>
);
}














