Kedhareswer Naidu

Interactive Code Cloth Physics Curtain

Text 58

About

Interactive cloth physics text effect for React: a sheet of source code hangs from a rod as a verlet mesh on canvas, so every character bends, folds and drapes. Hover parts the code and scrambles the glyphs, drag to pull and flick it, double-click to pin or unpin, R to rehang and arrow keys for a gust. Reduced-motion aware.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Interactive Code Cloth Physics Curtain to your project and fits it to your theme.

Code

How Interactive Code Cloth Physics Curtain is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client"

import CodeCurtain from "@/components/ui/code-curtain"

export default function Demo() {
  return (
    // w-full: 21st centres demos in a flex wrapper that would shrink this to 0px.
    <div className="relative w-full bg-[var(--color-background)]">
      <CodeCurtain />
    </div>
  )
}

More by Kedhareswer Naidu

View all
  • Glassmorphism Folder Cards

    Glassmorphism Folder Cards

    2.6K
  • GitHub Contribution Graph 3D Heatmap

    GitHub Contribution Graph 3D Heatmap

    1.8K
  • Morph Gallery

    Morph Gallery

    1.4K
  • Halftone Wordmark Footer

    Halftone Wordmark Footer

    1.2K
  • Glass Cards

    Glass Cards

    716
  • Hanging Polaroid Image Carousel

    Hanging Polaroid Image Carousel

    712
  • Particle Animation

    Particle Animation

    644
  • Tiger Tear Reveal

    Tiger Tear Reveal

    637

More in Text

View all
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    103
  • Rainbow Text Effect

    Rainbow Text Effect

    47
  • Motion Blur Text

    Motion Blur Text

    36
  • Text Loop

    Text Loop

    308
  • Text Reveal

    Text Reveal

    27
  • Animated Text

    Animated Text

    8
  • Apple Hello Effect

    Apple Hello Effect

    610
  • Typography

    Typography

    4