The TextMaskHero uses advanced CSS techniques (background-clip: text and mix-blend-mode: multiply) to create stunning visual cutouts. It allows you to pass a video URL or rely on a pure CSS animated gradient to breathe life into your typography.
Live Preview
Interactive Mask Experience
COLORFUL
COLORFUL
Hover or drag over the text
Scroll to discover the magic behind the mask.
Usage Guide
1. Import the Component
Import the component into your React or Next.js page:
import { TextMaskHero } from "@/components/creative/text-mask-hero";
2. Implementation Example
Render the component and customize its behavior by passing props:
import { TextMaskHero } from "@/components/creative/text-mask-hero";
export default function Example() {
return (
<div className="w-full flex items-center justify-center p-8">
<TextMaskHero
variant{/* value */}
text="example"
subtext="example"
/>
</div>
);
}