Edu Calvo

SDF Circle Transition

Shaders 4

About

A WebGL circle-shaped reveal wrapper that animates content changes with an SDF shader transition.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds SDF Circle Transition to your project and fits it to your theme.

Code

How SDF Circle Transition is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import SdfCircleTransition from "@/components/ui/sdf-circle-transition";
import { useState } from "react";

export default function SdfCircleTransitionDemo() {
  const [count, setCount] = useState(0);

  return (
    <div className="flex w-full h-screen items-center justify-center bg-background">
      <SdfCircleTransition
        transitionKey={count}
        className="flex h-64 w-64 items-center justify-center"
      >
        <button
          type="button"
          onClick={() => setCount((c) => c + 1)}
          className="flex h-64 w-64 flex-col items-center justify-center gap-2 rounded-2xl bg-muted text-foreground transition-colors hover:bg-muted/80"
        >
          <span className="text-4xl font-semibold">{count}</span>
          <span className="text-sm text-muted-foreground">
            Click to transition
          </span>
        </button>
      </SdfCircleTransition>
    </div>
  );
}

More by Edu Calvo

View all
  • Scrollable Card Stack

    Scrollable Card Stack

    240
  • AI Task List

    AI Task List

    167
  • Siri Orb

    Siri Orb

    164
  • Pixel Flow Field

    Pixel Flow Field

    157
  • Cursor Follow

    Cursor Follow

    155
  • Agent Avatar

    Agent Avatar

    136
  • Gravity Stars

    Gravity Stars

    124
  • Coverflow Carousel

    Coverflow Carousel

    110

More in Shaders

View all
  • Glass Fold

    Glass Fold

    279
  • Phosphor 30

    Phosphor 30

    293
  • Shader Animation

    Shader Animation

    3.7K
  • Wave

    Wave

    693
  • Black Hole

    Black Hole

    27
  • Shader Background

    Shader Background

    2K
  • Shader Lines

    Shader Lines

    2.3K
  • Liquid Glass Logo Reveal

    Liquid Glass Logo Reveal

    629

Explore more

Part of SmoothUI — browse the full library on 21st.dev.