The repeating-linear-gradient() function is an inbuilt function in CSS which is used to repeat linear gradients.
background-image: repeating-linear-gradient( angle | to side-or-corner, color-stop1, color-stop2, ...);
Parameters: This function accepts many parameter which are listed below:
- angle: This parameter is used to hold the angle of direction for the gradient. Its value lies between 0 to 360 degree. By default its value is 180 degree.
- side-or-corner: This parameter is used to define the position of the starting-point of the gradient line. It consists of two keywords: the first one indicates the horizontal side, left or right, and the second one the vertical side, top or bottom. The order is not relevant and each of the keyword is optional.
- color-stop1, color-stop2, …: This parameter is used to hold the color value followed by its optional stop position.
Below example illustrates the repeating-linear-gradient() function in CSS:
- How to override the CSS properties of a class using another CSS class ?
- Difference between bootstrap.css and bootstrap-theme.css
- CSS | rgb() Function
- CSS | rgba() Function
- CSS | hsla() Function
- CSS | hsl() Function
- CSS | cubic-bezier() Function
- CSS | calc() Function
- CSS | attr() Function
- CSS | linear-gradient() Function
- CSS | radial-gradient() Function
- CSS | repeating-radial-gradient() Function
- CSS | animation-timing-function Property
- CSS | var() Function
- CSS | brightness() Function
- CSS | blur() Function
- CSS | contrast() Function
- CSS | drop-shadow() Function
- CSS | grayscale() Function
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.