Masked Heading(018)

Kinetic reveal effect slicing text through angled geometric masks with smooth easing.

Scroll
Requires:gsap
Loading…

Installation

$npx kibo add masked-heading

Usage

1import { MaskedHeading } from "@/components/kibo/masked-heading/component";
2
3export default function Example() {
4 return (
5 <MaskedHeading />
6 );
7}

Props Reference

PropTypeDefaultDescription
textstring'Designed in the details'The text content to display and animate.
tagElementType'h2'Controls the tag for the component animation.
mediaType'image' | 'video''image'Controls the media type for the component animation.
srcstring''Controls the src for the component animation.
posterstring''Controls the poster for the component animation.
fillScalenumber1.25Controls the fill scale for the component animation.
parallaxnumber26Controls the parallax for the component animation.
driftnumber18Controls the drift for the component animation.
brightnessnumber1Controls the brightness for the component animation.
saturationnumber1Controls the saturation for the component animation.
grayscalebooleanfalseControls the grayscale for the component animation.
revealReveal'rise'Controls the reveal for the component animation.
durationnumber1.1Duration of the animation in seconds or milliseconds.
staggernumber0.09Stagger delay in seconds between individual characters/elements.
triggerTrigger'view'Controls the trigger for the component animation.
align'left' | 'center' | 'right''center'Controls the align for the component animation.
weightnumber700Controls the weight for the component animation.
trackingnumber-0.03Controls the tracking for the component animation.
lineHeightnumber1.06Controls the line height for the component animation.
textScalenumber0.115Controls the text scale for the component animation.
classNamestring''Additional CSS classes for styling and layout.
styleCSSProperties-Controls the style for the component animation.