Watersplash Imagemasking
Watersplash 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
Watersplash 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.
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.
Watersplash Imagemasking
import React from 'react';
function WaterSplashImageMasking() {
return (
<>
<section className='gap-2 dark:bg-black bg-white border rounded-lg p-5'>
<figure className='relative h-[80vh] '>
<img
src='https://images.unsplash.com/photo-1523612192437-66de9804ac3c?q=80&w=2070&auto=format&fit=crop'
alt=''
className='w-full h-full object-cover aspect-square'
style={{
maskImage: "url('/splash.svg')",
maskSize: 'cover',
maskRepeat: 'no-repeat',
maskPosition: 'center',
}}
/>
</figure>
</section>
</>
);
}
export default WaterSplashImageMasking;