effects
CSS Gradient Backgrounds
Linear, radial, conic, and mesh gradient backgrounds — including animated gradient effects.
CSS gradients create rich backgrounds without image files. Modern CSS supports linear-gradient, radial-gradient, and conic-gradient, and they can be layered using multiple backgrounds. This snippet covers essential gradient patterns from simple linear transitions to mesh gradients and animated colour-shift effects.
Usage Note
Layer multiple backgrounds using comma-separated values — they render top-to-bottom. For animated gradients, set background-size larger than 100% and animate background-position rather than the gradient colours themselves (which cannot be animated directly).
Tags
#gradient#background#linear-gradient#radial-gradient#conic-gradient#mesh