Add Hover Interactions to Website Cards
A reusable instruction for adding hover effects and smooth transitions to interactive cards when building a website with ChatGPT.
Prompt template
- Format
- Text
- Outputs
- Website (code)
When creating or updating a website, add hover states to all interactive cards using `group-hover:translate-y-[-4px]` and smooth transitions using `transition-all duration-300`.
What you'll create
Cards lift by four pixels with a three-hundred-millisecond transition, creating consistent hover feedback.
Comments
Tried this prompt? Share what you made, compare results, or ask a question