Glossy Film
A video-based glossy film effect with smooth iridescent animations.
A video-based glossy film effect with smooth iridescent animations.
Option 1: Using CLI (Recommended)
Install this video shader using the CLI:
npx shaderz add
Select "Glossy Film (Video)" from the list. This will:
/components/shaderz/VideoBackground.tsxglossy-film.mp4 video to /public/videos/glossy-film.mp4Option 2: Manual Installation
/public/videos/glossy-film.mp4No additional dependencies required. This component uses HTML5 video which is supported in all modern browsers.
Basic Usage:
import VideoBackground from '@/components/shaderz/VideoBackground';export default function MyComponent() {return (<div className="relative h-screen"><VideoBackground src="/videos/glossy-film.mp4" />{/* Your content here */}</div>);}
Hero Section Background Example:
import VideoBackground from '@/components/shaderz/VideoBackground';export default function Home() {return (<section className="relative min-h-screen">{/* Video background */}<div className="absolute inset-0 -z-10"><VideoBackground src="/videos/glossy-film.mp4" /></div>{/* Your hero content */}<div className="relative z-10 flex items-center justify-center min-h-screen"><h1 className="text-6xl font-bold text-white">Welcome to Your Site</h1></div></section>);}
| Prop | Type | Default | Description |
|---|---|---|---|
src | string | '/videos/glossy-film.mp4' | Path to the video file |
className | string | '' | Additional CSS classes |
You can provide your own video file:
<VideoBackground src="/your-custom-video.mp4" />
For best results, your custom video should:
This component works on all modern browsers that support HTML5 video: