A floating prompt card streams a current of energy particles across to a glowing portal ring, through which the generated video or image materializes with a shimmer-dissolve reveal.
import AIVideoGenerationPortal from '@crazygl/hero-ai-video-portal';
export default function Page() {
return (
<AIVideoGenerationPortal
heading="Type it. Watch it generate."
generatedMedia="https://crazygl.com/samples/drone-2.mp4"
revealStyle="dissolve"
portalColor="#5ad0ff"
accentColor="#c08bff"
/>
);
}heading / subheading, or switch contentType to two-columns / custom node content; cardSide puts the prompt card left or right (the portal sits opposite).cardTitle, promptText, promptModel badge, generateLabel.generatedMedia (image or video URL), revealStyle (dissolve / iris / scanline), revealCycle seconds per develop loop.portalRadius, portalColor, accentColor, glow, swirlSpeed.particleDensity, particleSpeed.bgTop, bgBottom, transparentBackground.npm install @crazygl/hero-ai-video-portalThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import AIVideoGenerationPortal from '@crazygl/hero-ai-video-portal';
export default function Landing() {
return (
<AIVideoGenerationPortal />
);
}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 AIVideoGenerationPortal from '@crazygl/hero-ai-video-portal';
export default function Page() {
return (
<section>
<AIVideoGenerationPortal
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}