Tech
CSS Gradients in One Screen: linear, radial, conic, and the rules nobody spells out
If you've only ever shipped linear-gradient(to right, blue, red) , you're using about one-third of what CSS gradients can do. There are only three functions, and the mental model for each is small. Here's the whole thing in one read.
The one fact that makes everything click
A gradient is not an image file. Per MDN , a <gradient> is a special kind of <image> that the browser generates at render time . So it:
scales to any size without blurring (it's drawn...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to