splashwater-videomasking

PreviousNext
Docs
ui-layoutscomponent

Preview

Loading preview…
./registry/components/clip-path/splash-water-video-masking.tsx
import React from 'react';

function index() {
  return (
    <>
      <section className='gap-2 dark:bg-black bg-white border rounded-lg p-5'>
        <figure className='relative  '>
          <video
            autoPlay
            muted
            loop
            style={{
              maskImage: "url('/splash-center.svg')",
              maskSize: 'contain',
              maskRepeat: 'no-repeat',
              maskPosition: 'center',
            }}
            className='w-full relative max-h-136 object-cover  aspect-square '
          >
            <source
              src='https://videos.pexels.com/video-files/7710243/7710243-uhd_2560_1440_30fps.mp4'
              type='video/mp4'
            />
          </video>
        </figure>
      </section>
    </>
  );
}

export default index;

Installation

npx shadcn@latest add @ui-layouts/splashwater-videomasking

Usage

import { SplashwaterVideomasking } from "@/components/splashwater-videomasking"
<SplashwaterVideomasking />