Docs
Disclose Image
Reveal the image using a sliding door-like effect
requires interactionhoverrequires config
Installation
Update tailwind.config.js
Add the following to your tailwind.config.js file.
Alternatively, you can replace ease-slow
with ease-[cubic-bezier(.405,_0,_.025,_1)]
and
duration-mid
with duration-[3000ms]
instead of updating the tailwind.config.js
file.
Run the following command
It will create a new file called disclose-image.tsx
inside the components/animata/image
directory.
Paste the code
Open the newly created file and paste the following code:
Credits
Built by hari