All components

Textoverlay Videomasking

Textoverlay Videomasking is a React and Tailwind CSS text component from UI Layouts, licensed MIT. Copy it and paste it into your project.

UI Layouts MIT text

What it is

Textoverlay Videomasking is a React and Tailwind CSS text component from UI Layouts, licensed MIT. Copy it and paste it into your project.

How to use it

Open it in the catalogue, press copy, and paste it into your project. The prompt you copy carries the code and the rules that tell your agent to reproduce it without changing anything.

Open in the catalogue

Five free copies a month. No card.

Needs

npm i motion

Licence

This component comes from UI Layouts and is redistributed under the MIT licence, which permits commercial use. The copyright notice travels with the code.

Textoverlay Videomasking

./registry/components/clip-path/text-overlay-video-masking.tsx
import React from 'react';

function TextOverlayVideoMasking() {
  return (
    <>
      <section className='gap-2 dark:bg-black bg-white border rounded-lg p-5'>
        <figure className=' relative w-full h-full bg-black'>
          <svg
            viewBox='0 0 285 80'
            preserveAspectRatio='xMidYMid slice'
            className='w-full absolute top-0 left-0 h-full '
          >
            <defs>
              <mask id='mask' x='0' y='0' width={'100%'} height={'100%'}>
                <rect
                  x='0'
                  y='0'
                  width={'100%'}
                  height={'100'}
                  style={{ fill: 'white', mask: 'url(#mask)' }}
                />
                <text
                  x='50%'
                  y='50%'
                  fill='red'
                  textAnchor='middle'
                  className=' italic underline font-bold'
                >
                  UI-LAYOUT
                </text>
              </mask>
            </defs>
            <rect
              x='0'
              y='0'
              width={'100%'}
              height={'100'}
              style={{ fill: '#000105', mask: 'url(#mask)' }}
            />
          </svg>
          <video autoPlay muted loop className='w-[80%] h-full '>
            <source
              src='https://videos.pexels.com/video-files/7710243/7710243-uhd_2560_1440_30fps.mp4'
              type='video/mp4'
            />
          </video>
        </figure>
      </section>
    </>
  );
}

export default TextOverlayVideoMasking;

Similar components