Masked Video

A dynamic video component with a clip path animation effect driven by scroll interactions.

Mihir (OPM)

Written by Mihir (OPM)

The MaskedVideo component provides an engaging visual effect by animating a clip path on a video as the user scrolls. Ideal for interactive storytelling, hero sections, or immersive backgrounds.

Installation

Examples

Props

PropTypeDescriptionDefault
videoPathstringPath to the video file to be displayed-

Basic Usage

import MaskedVideo from "@/components/masked-video";
 
export default function Example() {
  return <MaskedVideo videoPath="/path/to/video.mp4" />;
}