Add Polished Card and Modal Interactions to a Website
A reusable instruction for making website cards interactive and giving modals smooth entrance animations.
Prompt template
- Format
- Text
- Outputs
- Website (code)
When creating or modifying a website, make all cards clickable. Add a hover effect using `scale-105`, a click effect using `active:scale-95`, and a smooth appearance animation for modal windows.
What you'll create
Cards respond visually to hover and press while modal windows appear with smooth motion.
Frequently asked questions
Which scale effects are specified?
The source uses scale-105 on hover and active:scale-95 on click.
Comments
Tried this prompt? Share what you made, compare results, or ask a question