A panel of live syntax-highlighted source code dissolves into a stream of glowing character particles that stream across the canvas and reassemble into a polished product UI screenshot. A continuous 'code becomes product' loop for developer-tool and SaaS landing pages.
import CodeToProductTransformation from '@crazygl/hero-code-to-product-transformation';
export default function Hero() {
return (
<CodeToProductTransformation
heading="From a single line of code to a finished product."
subheading="Real components, real syntax — no mockups, no detours."
codeText={`export function Dashboard() { /* … */ }`}
screenshot="/your-app-screenshot.png"
onCTAClick="/signup"
/>
);
}heading, subheading, ctaLabel, onCTAClick (URL or function), CTA colours.codeText, codeLanguage (tsx/python/go/rust/css/json…), codePanelLabel, codePanelTheme (Dracula, One Dark, GitHub…).screenshot, productLabel, productMetaText.transformationSpeed, particleDensity, particleSize, arcCurvature, trailLength, pointerInfluence.colorTheme presets (Midnight/Daylight/Aurora/Citrus/Custom), transparentBackground, bgColor.npm install @crazygl/hero-code-to-product-transformationThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import CodeToProductTransformation from '@crazygl/hero-code-to-product-transformation';
export default function Landing() {
return (
<CodeToProductTransformation />
);
}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 CodeToProductTransformation from '@crazygl/hero-code-to-product-transformation';
export default function Page() {
return (
<section>
<CodeToProductTransformation
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}