Creative Mask Clippath
Creative Mask Clippath is a React and Tailwind CSS component from UI Layouts, licensed MIT. Copy it and paste it into your project.
UI Layouts
MIT
other
What it is
Creative Mask Clippath is a React and Tailwind CSS 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.
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.
Creative Mask Clippath
import React from 'react';
function ClipPathCreativeMask() {
return (
<>
<svg className='clipppy absolute -top-[999px] -left-[999px] w-0 h-0'>
<defs>
<clipPath id='clip-pattern' clipPathUnits={'objectBoundingBox'}>
<path
fillRule='evenodd'
clipRule='evenodd'
d='M0.71161 0H0V1H0.0362048C0.236734 1 0.42296 0.940031 0.577199 0.837408H0.74407V0.718826H0.888889V0.5H1V0.0562347V0H0.71161Z'
fill='#D9D9D9'
/>
</clipPath>
<clipPath id='clip-pattern1' clipPathUnits={'objectBoundingBox'}>
<path
fillRule='evenodd'
clipRule='evenodd'
d='M0.00124689 0H1V0.665217V0.88913V0.890217C1 0.950849 0.943617 1 0.874065 1C0.804513 1 0.74813 0.950849 0.74813 0.890217V0.890761C0.74813 0.951092 0.692026 1 0.622818 1C0.559929 1 0.50786 0.959615 0.498877 0.906971C0.490714 0.959506 0.439061 1 0.376559 1C0.311952 1 0.258938 0.956733 0.253565 0.901625C0.246444 0.956975 0.192577 1 0.127182 1C0.0569414 1 0 0.950362 0 0.88913V0.666304C0 0.661014 0.00042501 0.655811 0.00124689 0.650718V0Z'
fill='#D9D9D9'
/>
</clipPath>
<clipPath id='clip-pattern2' clipPathUnits={'objectBoundingBox'}>
<path
fillRule='evenodd'
clipRule='evenodd'
d='M0.827825 0.233206C0.928457 0.262983 1 0.338976 1 0.428023V0.964491C1 0.984102 0.979649 1 0.954545 1H0.0454546C0.0203507 1 0 0.984102 0 0.964491V0.428023C0 0.338976 0.0715426 0.262983 0.172175 0.233206C0.187663 0.102409 0.328522 0 0.5 0C0.671478 0 0.812337 0.102409 0.827825 0.233206Z'
fill='#D9D9D9'
/>
</clipPath>
<clipPath id='clip-pattern3' clipPathUnits={'objectBoundingBox'}>
<path
d='M1 1H0.293592V0.868235H0V0.412941C0.0268256 0.241176 0.256754 0.0822454 0.500745 0C0.788326 0.098025 0.962742 0.26 0.99851 0.409412L1 1Z'
fill='#D9D9D9'
/>
</clipPath>
<clipPath id='clip-pattern4' clipPathUnits={'objectBoundingBox'}>
<path
d='M0.997417 0.541807C1.02854 0.316235 0.773628 -0.00919936 0.492039 0.000199072C0.249199 0.00830422 0 0.217547 0 0.539457C0.0251948 0.836695 0.248984 1 0.492039 1C0.745469 1 0.982596 0.83787 0.997417 0.541807Z'
fill='#D9D9D9'
/>
</clipPath>
<clipPath id='clip-pattern5' clipPathUnits={'objectBoundingBox'}>
<path
d='M0.00886287 0.313679C0.0269396 0.216981 0.172073 0 0.502947 0C0.798211 0 0.962906 0.196934 0.992581 0.318396C1.02374 0.511792 0.937683 0.525943 0.921363 0.625C0.921363 0.716981 1 0.746462 1 0.833726C0.988294 0.89801 0.974952 0.93728 0.949553 1H0.0504066C0.0237622 0.936348 0.00886178 0.908019 0.00292682 0.834906C-0.0104279 0.748821 0.0726626 0.735849 0.0771149 0.625C0.0696933 0.525943 -0.0297155 0.520047 0.00886287 0.313679Z'
fill='#D9D9D9'
/>
</clipPath>
<clipPath id='clip-pattern6' clipPathUnits={'objectBoundingBox'}>
<path
d='M0 1H0.152466C0.185351 0.960002 0.327354 0.884713 0.505232 0.884713C0.683109 0.884713 0.818635 0.968237 0.849028 1H1V0.347104C0.985052 0.222406 0.838565 0.00477544 0.497758 6.98837e-05C0.156951 -0.00463567 0.0239163 0.229466 0 0.347104V1Z'
fill='#D9D9D9'
/>
</clipPath>
<clipPath id='clip-pattern7' clipPathUnits={'objectBoundingBox'}>
<path
d='M0 0.578143V0H0.298507C0.725373 0.027027 0.958209 0.27027 1 0.518214V1H0.147761V0.694477H0.061194V0.578143H0Z'
fill='#D9D9D9'
/>
</clipPath>
<clipPath id='clip-pattern8' clipPathUnits={'objectBoundingBox'}>
<path
d='M1 1H0V0.365648C0.0111437 0.322987 0.0446555 0.306894 0.110945 0.298564C0 0.231481 0.0794603 0.107906 0.22039 0.166751C0.157421 0.0690679 0.296852 -0.0156706 0.398801 0.0855445C0.407796 -0.0215584 0.578711 -0.0356796 0.604198 0.0867166C0.673163 -0.00154936 0.836582 0.0502345 0.782609 0.163217C0.890555 0.113787 1.01499 0.220886 0.887556 0.302092C0.957241 0.303259 0.983419 0.319478 1 0.365648V1Z'
fill='#D9D9D9'
/>
</clipPath>
</defs>
</svg>
<section className='grid grid-cols-3 gap-8 dark:bg-black bg-white border rounded-lg p-5'>
<figure style={{ clipPath: 'url(#clip-pattern)' }}>
<img
src='https://images.unsplash.com/photo-1498019559366-a1cbd07b5160?q=80&w=2058&auto=format&fit=crop'
alt=''
className='transition-all duration-300 aspect-4/5 min-h-full align-bottom object-cover hover:scale-110 w-full'
/>
</figure>
<figure style={{ clipPath: 'url(#clip-pattern1)' }}>
<img
src='https://images.unsplash.com/photo-1718603630685-d2605d5190e8?w=500&auto=format&fit=crop'
alt=''
className='transition-all duration-300 aspect-4/5 min-h-full align-bottom object-cover hover:scale-110 w-full'
/>
</figure>
<figure style={{ clipPath: 'url(#clip-pattern2)' }}>
<img
src='https://images.unsplash.com/photo-1718795903419-2bc5bba08d2f?w=500&auto=format&fit=crop'
alt=''
className='transition-all duration-300 aspect-4/5 min-h-full align-bottom object-cover hover:scale-110 w-full'
/>
</figure>
<figure style={{ clipPath: 'url(#clip-pattern3)' }}>
<img
src='https://images.unsplash.com/photo-1718524767487-7f98d4e5eeeb?w=500&auto=format&fit=crop'
alt=''
className='transition-all duration-300 aspect-4/5 min-h-full align-bottom object-cover hover:scale-110 w-full'
/>
</figure>
<figure style={{ clipPath: 'url(#clip-pattern4)' }}>
<img
src='https://images.unsplash.com/photo-1555212697-194d092e3b8f?w=500&auto=format&fit=crop'
alt=''
className='transition-all duration-300 aspect-4/5 min-h-full align-bottom object-cover hover:scale-110 w-full'
/>
</figure>
<figure style={{ clipPath: 'url(#clip-pattern5)' }}>
<img
src='https://images.unsplash.com/photo-1572025442646-866d16c84a54?w=500&auto=format&fit=crop'
alt=''
className='transition-all duration-300 aspect-4/5 min-h-full align-bottom object-cover hover:scale-110 w-full'
/>
</figure>
<figure style={{ clipPath: 'url(#clip-pattern6)' }}>
<img
src='https://images.unsplash.com/photo-1718838541476-d04e71caa347?w=500&auto=format&fit=crop'
alt=''
className='transition-all duration-300 aspect-4/5 min-h-full align-bottom object-cover hover:scale-110 w-full'
/>
</figure>
<figure style={{ clipPath: 'url(#clip-pattern7)' }}>
<img
src='https://images.unsplash.com/photo-1718633739487-6efee8ac466d?w=500&auto=format&fit=crop'
alt=''
className='transition-all duration-300 aspect-4/5 min-h-full align-bottom object-cover hover:scale-110 w-full'
/>
</figure>
<figure style={{ clipPath: 'url(#clip-pattern8)' }}>
<img
src='https://images.unsplash.com/photo-1718601980986-0ce75101d52d?w=500&auto=format&fit=crop'
alt=''
className='transition-all duration-300 aspect-4/5 min-h-full align-bottom object-cover hover:scale-110 w-full'
/>
</figure>
</section>
<section className=' dark:bg-black mt-4 bg-white border rounded-lg p-5'>
<figure className='relative group'>
<svg className='w-full' width={'100%'} height={'100%'} viewBox='0 0 100 40'>
<defs>
<clipPath id='clip-inverted' clipPathUnits={'objectBoundingBox'}>
<path
d='M0.0998072 1H0.422076H0.749756C0.767072 1 0.774207 0.961783 0.77561 0.942675V0.807325C0.777053 0.743631 0.791844 0.731953 0.799059 0.734076H0.969813C0.996268 0.730255 1.00088 0.693206 0.999875 0.675159V0.0700637C0.999875 0.0254777 0.985045 0.00477707 0.977629 0H0.902473C0.854975 0 0.890448 0.138535 0.850165 0.138535H0.0204424C0.00408849 0.142357 0 0.180467 0 0.199045V0.410828C0 0.449045 0.0136283 0.46603 0.0204424 0.469745H0.0523086C0.0696245 0.471019 0.0735527 0.497877 0.0733523 0.511146V0.915605C0.0723903 0.983121 0.090588 1 0.0998072 1Z'
fill='#D9D9D9'
/>
</clipPath>
</defs>
<image
clipPath='url(#clip-inverted)'
preserveAspectRatio='xMidYMid slice'
width={'100%'}
height={'100%'}
xlinkHref='https://images.unsplash.com/photo-1718601980986-0ce75101d52d?w=1200&auto=format&fit=crop'
></image>
</svg>
</figure>
</section>
</>
);
}
export default ClipPathCreativeMask;