Last updated on : 2022-04-10
The repeating-linear-gradient() function allows us to define a repeating radial or linear gradient as a CSS image. This can be used to create gradients that don’t repeat when rotated.
CSS Images Module Level 3 # repeating-gradients
/* A repeating gradient tilted 45 degrees, starting blue and finishing red, repeating 3 times */
repeating-linear-gradient(45deg, blue, red 33.3%);
/* A repeating gradient going from the bottom right to the top left, starting blue and finishing red, repeating every 20px */
repeating-linear-gradient(to left top, blue, red 20px);
/* A gradient going from the bottom to top, starting blue, turning green after 40%, and finishing red. This gradient doesn't repeat because the last color stop defaults to 100% */
repeating-linear-gradient(0deg, blue, green 40%, red);
/* A gradient repeating five times, going from the left to right, starting red, turning green, and back to red */
repeating-linear-gradient(to right, red 0%, green 10%, red 20%);
Browser Support For Android Browser Versions
Browser Support For Opera Mobile Versions
Browser Support For Chrome for Android Versions
Browser Support For Firefox for Android Versions
Test your website on 3000+ real browsers and operating systems for mobile and desktop with the LambdaTest cloud. Perform browser compatibility test for CSS Repeating Gradients and many more web technologies that are a part of your website or web-application.
Last Modified date
2022-04-10
Data sourced from
Test this and other features on your website for compatibility across
3,000 real browsers and devices using
I hope we're able to help you build browser compatible web experience.
Fast track your browser testing experience on 3000+ browsers and OS combinations with LambdaTest.
Sarah Elson (Product & Growth Lead)