All components

Fixedbg Imagemasking

Fixedbg Imagemasking is a React and Tailwind CSS media component from UI Layouts, licensed MIT. Copy it and paste it into your project.

UI Layouts MIT media

What it is

Fixedbg Imagemasking is a React and Tailwind CSS media 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.

Fixedbg Imagemasking

./registry/components/clip-path/fixed-bg-image-masking.tsx
import React from 'react';

function FixedBgImageMasking() {
  return (
    <>
      <section className='w-full gap-2 dark:bg-black bg-white border rounded-lg p-5'>
        <figure
          className='relative h-[70vh] bg-fixed bg-cover bg-center '
          style={{
            backgroundImage:
              "url('https://images.unsplash.com/photo-1523612192437-66de9804ac3c?q=80&w=2070&auto=format&fit=crop')",
            maskImage: "url('/splash-center.svg')",
            maskSize: 'contain',
            maskRepeat: 'no-repeat',
            maskPosition: 'center',
          }}
        ></figure>
      </section>
    </>
  );
}

export default FixedBgImageMasking;

Similar components