SVG Mask Effect
A mask reveal effect, hover the cursor over a container to reveal what's underneath.
Discover the power of Tailwind CSS v4 with native CSS variables and container queries withadvanced animations.
The first rule of MRR Club is you do not talk about MRR Club. The second rule of MRR Club is you DO NOT talk about MRR Club.
Installation
Run the following command
npx shadcn@latest add https://ui.aceternity.com/registry/svg-mask-effect.json
Add mask in public folder
<svg
width="1298"
height="1298"
viewBox="0 0 1298 1298"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<circle cx="649" cy="649" r="649" fill="black" />
</svg>
Props
Prop name | Type | Description |
---|---|---|
className | string | The class name of the Background Beams component. |
children | string | ReactNode | The content of the page that you want to keep static / always on the page |
revealText | string | ReactNode | The component that is revealed on hover |
size | number | size of the mask |
revealSize | number | Hovered over size of the mask |
Build websites faster and 10x better than your competitors with Aceternity UI Pro
With the best in class components and templates, stand out from the crowd and get more attention to your website. Trusted by founders and entrepreneurs from all over the world.
The work that Manu did laid the foundation of online education that we provide today. The website he built for us is used by thousands of students every day. He took the requirements and built the ...
Jagvinder Kour
Chairperson at Golden Bells Academy