Components
Flexible and customizable hero section component with gradient backgrounds and animated content.
Features
import {
Hero,
BgGradient,
TextStagger,
AnimatedContainer,
} from "@/components/ui/hero-animated";
const settings = {
stagger: 0.05,
opacity: 0,
scale: 1,
x: 0,
y: 40,
};
export default function Demo(props: Partial<typeof settings>) {
const s = { ...settings, ...props };
return (
<div className="h-screen w-screen">
<Hero>
<BgGradient gradientColors="purple" />
<TextStagger
as="h1"
text="Build beautiful animated heroes"
stagger={s.stagger}
opacity={s.opacity}
scale={s.scale}
x={s.x}
y={s.y}
className="z-10 max-w-4xl px-6 text-5xl font-bold text-white md:text-7xl"
/>
<AnimatedContainer
opacity={s.opacity}
scale={s.scale}
x={s.x}
y={s.y}
className="mt-6 max-w-2xl px-6 text-lg text-white/60 md:text-xl"
>
Motion-powered staggered text with a radial gradient backdrop, ready
to drop into any landing page.
</AnimatedContainer>
</Hero>
</div>
);
}
Part of Systaliko UI — browse the full library on 21st.dev.