Components
Loading preview...
Interactive 3D panel stack built with Framer Motion springs. Mouse position drives per-panel wave lift and scale via a Gaussian falloff curve.
npx shadcn@latest add https://21st.dev/r/moazamtrade/stacked-panels-cursor-intereactive-component"use client";
import StackedPanels from "@/components/ui/stacked-panels-cursor-intereactive-component";
export default function DemoOne() {
return (
<section className="relative w-full h-screen overflow-hidden bg-background flex flex-col items-center justify-center">
<div
className="pointer-events-none absolute inset-0 z-10 opacity-[0.03]"
style={{
backgroundImage: `url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E")`,
backgroundRepeat: "repeat",
backgroundSize: "128px 128px",
}}
/>
<p className="absolute top-8 left-1/2 -translate-x-1/2 z-20 text-xs tracking-[0.25em] uppercase text-muted-foreground font-mono select-none">
Shadway Interactive Canvas
</p>
<div className="w-full h-full">
<StackedPanels />
</div>
<p className="absolute bottom-8 left-1/2 -translate-x-1/2 z-20 text-xs tracking-widest uppercase text-muted-foreground font-mono select-none">
Move cursor to interact
</p>
</section>
);
}