Magazine-style cover that auto-cycles through a stack — large title, issue number, vertical spine text, with a pointer-driven tilt, a per-cover link, six entrance modes, and an optional pause-on-cover-hover.
import AutoCover from '@crazygl/hero-autocover';
export default function Hero() {
return (
<AutoCover
cover1Title="Drift"
cover1Image="/covers/winter.jpg"
cycleSec={3.4}
transitionMode="slide"
/>
);
}title, issue line, image, and optional url (turns the cover into a link; external URLs open in a new tab).cycleSec hold time, transitionMode (slide/fade/flip/lift/drop/zoom), transitionMs duration, pointerTilt strength, and pauseOnHover.titleColor, issueColor, spineColor, headingFontFamily (Google font), headingFontWeight.transparentBackground and bgColor.npm install @crazygl/hero-autocoverThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import AutoCover from '@crazygl/hero-autocover';
export default function Landing() {
return (
<AutoCover />
);
}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 AutoCover from '@crazygl/hero-autocover';
export default function Page() {
return (
<section>
<AutoCover
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}