Paper polygons fold and unfold as they drift across soft directional light. Each shape has its own crease line and fold cycle.
import FloatingOrigami from '@crazygl/hero-origami';
export default function Page() {
return (
<FloatingOrigami
heading="Folded."
shapeCount={8}
foldSpeed={1}
paperColor="#fff8ef"
/>
);
}contentType, heading, subheading, columns / custom node.transparent, bgTop, bgBottom.paperColor, shadeColor, accentColor (lit), shapeCount, foldSpeed, drift, spin.npm install @crazygl/hero-origamiThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import FloatingOrigami from '@crazygl/hero-origami';
export default function Landing() {
return (
<FloatingOrigami />
);
}The wrapper renders static HTML on the server and only initialises the canvas after hydration, so search engines see your copy.
// app/page.tsx — works in SSR-first frameworks (Next, Remix, Astro, etc.)
'use client';
import FloatingOrigami from '@crazygl/hero-origami';
export default function Page() {
return (
<section>
<FloatingOrigami
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}