September 29, 2015 01:20 pm GMT
Original Link: https://css-tricks.com/why-do-we-have-repeating-linear-gradient-anyway/
Why Do We Have `repeating-linear-gradient` Anyway?
It all started with this question Keith Clark recently asked on twitter.
CSS repeating-linear-gradients, do we need these? Can't the same thing be achieved with a linear-gradient and background-size?
That's a good question.
Their cousin, repeating radial gradients, definitely come in handy. They hsave saved me from having to write tens of stops inside a regular radial-gradient when I wanted to reproduce the look of a vinyl record with CSS.
Vinyl record with repeating-radial-gradient
But repeating-linear-gradient
?
Until this …
Why Do We Have `repeating-linear-gradient` Anyway? is a post from CSS-Tricks
Original Link: https://css-tricks.com/why-do-we-have-repeating-linear-gradient-anyway/
Share this article:
Tweet
View Full Article