# hover-animation-safety > Safe hover and animation patterns that don't cause layout issues. Use when implementing hover effects, transitions, or animations on cards and interactive elements. - Author: yusufesntrk - Repository: yusufesntrk/searched-website - Version: 20251224112704 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-07 - Source: https://github.com/yusufesntrk/searched-website - Web: https://mule.run/skillshub/@@yusufesntrk/searched-website~hover-animation-safety:20251224112704 --- --- name: hover-animation-safety description: Safe hover and animation patterns that don't cause layout issues. Use when implementing hover effects, transitions, or animations on cards and interactive elements. --- # Hover & Animation Safety Patterns for hover effects that don't break layouts. --- ## The Scale Problem `hover:scale-*` is dangerous because it makes elements overlap: ``` Normal state: ┌─────────┐ ┌─────────┐ ┌─────────┐ │ Card │ │ Card │ │ Card │ └─────────┘ └─────────┘ └─────────┘ On hover with scale: ┌─────────┐ ┌───────────┐ ┌─────────┐ │ Card │ │ Card │ │ Card │ └─────────┘ │ SCALED │ └─────────┘ └───────────┘ ↑ Overlaps neighbors! ``` **Even worse:** Cards under tabs/navigation can overlap into them. --- ## Rule 1: No Scale on Constrained Elements ```tsx // ❌ DANGEROUS - Scale causes overlap