Ajith k v

Paper Fold Section

Component 9

About

Interactive 3D Stationery Paper Fold Letter with WebGL and GSAP ScrollTrigger

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

Code

How Paper Fold Section is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import React, { useEffect } from "react";
import Lenis from "lenis";
import { PaperFoldSection } from "@/components/ui/paper-fold-section";

export default function PaperFoldDemo() {
  useEffect(() => {
    const lenis = new Lenis({
      duration: 1.2,
      easing: (t) => Math.min(1, 1.001 - Math.pow(2, -10 * t)),
    });

    (window as unknown as { lenis?: Lenis }).lenis = lenis;

    function raf(time: number) {
      lenis.raf(time);
      requestAnimationFrame(raf);
    }

    const frameId = requestAnimationFrame(raf);

    return () => {
      cancelAnimationFrame(frameId);
      lenis.destroy();
    };
  }, []);

  return (
    <main className="w-full bg-[#ECEAE5] text-neutral-900 overflow-x-hidden">
      {/* Intro Header Section */}
      <section className="w-full min-h-screen min-h-[100dvh] flex flex-col items-center justify-center text-center px-4 sm:px-6 py-12 sm:py-20">
        <span className="text-xs uppercase tracking-[0.25em] text-neutral-500 font-semibold mb-3 sm:mb-4">
          Interactive WebGL
        </span>
        <h1 className="text-3xl sm:text-5xl md:text-6xl lg:text-7xl font-serif font-light tracking-tight max-w-4xl text-neutral-900 leading-[1.18] sm:leading-[1.15]">
          A Letter to the Reader
        </h1>
        <p className="mt-4 sm:mt-6 text-xs sm:text-sm md:text-base text-neutral-600 max-w-xs sm:max-w-md md:max-w-xl leading-relaxed">
          Scroll down to watch the folded stationery pin and unfold into a full editorial reading letter.
        </p>
      </section>

      {/* Standalone 3D Paper Fold Section */}
      <PaperFoldSection />

      {/* Outro Content Section */}
      <section className="w-full min-h-screen min-h-[100dvh] bg-[#ECEAE5] flex flex-col items-center justify-center text-center px-4 sm:px-6 py-16 sm:py-24">
        <h2 className="text-2xl sm:text-4xl md:text-5xl font-serif text-neutral-900 tracking-tight leading-snug">
          Crafting Tomorrow’s Digital Realm
        </h2>
        <p className="mt-3 sm:mt-4 text-xs sm:text-sm md:text-base text-neutral-600 max-w-xs sm:max-w-md md:max-w-lg leading-relaxed">
          Where high-performance engineering meets intuitive digital design.
        </p>
      </section>
    </main>
  );
}

Dependencies

More by Ajith k v

View all
  • Hero Scroll Video Pin Reveal

    Hero Scroll Video Pin Reveal

    1K
  • Lip-scroll-zoomin-animation

    Lip-scroll-zoomin-animation

    921
  • Home Hero Landing Scroll Animation

    Home Hero Landing Scroll Animation

    744
  • Inversion Circle Scroll Animation

    Inversion Circle Scroll Animation

    337
  • Landing scroll animation

    Landing scroll animation

    247
  • Reveal Text

    Reveal Text

    159
  • ImgText Reveal Scroll Animation

    ImgText Reveal Scroll Animation

    109
  • woodpeck-hero-landing-animation

    woodpeck-hero-landing-animation

    96