All components

Animal Imagemasking

Animal 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

Animal 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.

Animal Imagemasking

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

function AnimalImageMasking() {
  return (
    <>
      <section className='grid grid-cols-2 gap-2 dark:bg-black bg-white border rounded-lg p-5'>
        <figure className='relative h-fit'>
          <img
            src='https://images.unsplash.com/photo-1535968881874-0c39f1503640?w=500&auto=format&fit=crop'
            alt=''
            className='w-full h-full object-cover  aspect-square'
            style={{
              maskImage: "url('/cat.svg')",
              maskSize: 'contain',
              maskRepeat: 'no-repeat',
              maskPosition: 'center',
            }}
          />
        </figure>

        <figure className='relative h-fit '>
          <img
            src='https://images.unsplash.com/photo-1556648011-e01aca870a81?w=500&auto=format&fit=crop'
            alt=''
            className='w-full h-full object-cover  aspect-square '
            style={{
              maskImage: "url('/panda.svg')",
              maskSize: 'contain',
              maskRepeat: 'no-repeat',
              maskPosition: 'center',
            }}
          />
        </figure>
      </section>
    </>
  );
}

export default AnimalImageMasking;

Similar components