Bring web UIs to life with smooth hover states, hardware-accelerated 2D/3D transforms, keyframe animations, and accessibility best practices.
1.btn {2 background-color: #3b82f6;3 transform: translateY(0);4 /* Smoothly transition transform and background over 0.2s */5 transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);6}7 8.btn:hover {9 background-color: #2563eb;10 transform: translateY(-2px);11}1.card-hover {2 transition: transform 0.3s ease;3}4 5.card-hover:hover {6 transform: scale(1.05) rotate(1deg);7}1/* Define keyframe steps */2@keyframes pulse-glow {3 0% {4 transform: scale(1);5 opacity: 1;6 }7 50% {8 transform: scale(1.08);9 opacity: 0.7;10 }11 100% {12 transform: scale(1);13 opacity: 1;14 }15}16 17/* Apply to element */18.badge-pulsing {19 animation: pulse-glow 2s infinite ease-in-out;20}1@media (prefers-reduced-motion: reduce) {2 *, ::before, ::after {3 animation-duration: 0.01ms !important;4 animation-iteration-count: 1 !important;5 transition-duration: 0.01ms !important;6 scroll-behavior: auto !important;7 }8}