Docs
Breeze Footer
Breeze Footer
A footer component that uses an SVG mask to display an animated video background, because your footer deserves a cinematic ending.
Installation
Install the following dependencies:
npm install clsx tailwind-merge
Add the utils.ts file to the @/lib folder
Create a breeze-footer.tsx file and copy the below code.
Update the import paths to match your project setup.
Usage
import BreezeFooter from "@/components/breezeblocks/breeze-footer";
// you can either use:
// Inline SVG
<BreezeFooter
svgMask={`<svg>...</svg>`}
videoSrc="/video.mp4"
speed={0.5}
invert={1}
/>
// Or from SVG file
<BreezeFooter
svgMask="/mask.svg"
videoSrc="/video.mp4"
speed={0.5}
/>
Props
Prop | Type | Description | Default |
---|---|---|---|
svgMask | string | The mask source. Can be inline SVG code (<svg>…</svg> ) or .svg file path | required |
videoSrc | string | Path/URL to the video file | required |
speed | number | Speed multiplier for the video | 1 |
invert | number | Inverts video colors. 0 = normal, 1 = fully inverted | 0 |
maskSize | string | CSS mask-size value | "contain" |
maskPosition | string | CSS mask-position value | "center" |