Explores the challenges of animating color transitions in CSS, revealing that browsers perform color interpolation in RGB space even when colors are specified in HSL, causing unwanted gray intermediate colors. Demonstrates how CSS filters, specifically hue-rotate(), provide a superior solution for smooth color shifting
•9m read time• From joshwcomeau.com
Table of contents
Table of ContentsLink to this heading Hello colorLink to this heading Shifting between colorsLink to this heading CSS filters to the rescue!Link to this heading TwinklingLink to this heading Whimsical Animations4 Comments
Sort: