Gradient buttons are eye-catching CTAs. Use linear-gradient and background-size for animated hover effects.
Basic Gradient
Set a gradient as the background using linear-gradient().
Animated Hover
Use a larger background-size and shift the position on hover for a smooth animation.
Accessibility
Always maintain sufficient color contrast (4.5:1 for normal text, 3:1 for large text) per WCAG.