Gradients - repeat Flashcards

1
Q

repeating gradient CSS functions

A
  • repeating-linear-gradient() CSS function creates an image consisting of repeating linear gradients.
  • repeating-radial-gradient() CSS function creates an image consisting of repeating gradients that radiate from an origin.
  • repeating-conic-gradient() CSS function creates an image consisting of a repeating gradient (rather than a single gradient) with color transitions rotated around a center point (rather than radiating from the center).

Source MDN

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

repeating-linear-gradient() CSS function

A

The repeating-linear-gradient() CSS function creates an image consisting of repeating linear gradients.

Takes the same arguments as linear-gradient CSS function, but it repeats the color stops infinitely in all directions so as to cover its entire container.

Examples:

repeating-linear-gradient(45deg, blue, red 33.3%);
repeating-linear-gradient(to left top, blue, red 20px);
repeating-linear-gradient(0deg, blue, green 40%, red);
repeating-linear-gradient(to right, red 0%, green 10%, red 20%);

Source MDN

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

repeating-radial-gradient()

A

The repeating-radial-gradient() CSS function creates an image consisting of repeating gradients that radiate from an origin. It is similar to radial-gradient() and takes the same arguments, but it repeats the color stops infinitely in all directions so as to cover its entire container.

Examples:

repeating-radial-gradient(circle at center, red 0, blue, green 30px);
repeating-radial-gradient(farthest-corner at 20% 20%, red 0, green, red 20%);

Source MDN

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

repeating-conic-gradient() CSS function

A

The repeating-conic-gradient() CSS function creates an image consisting of a repeating gradient (rather than a single gradient) with color transitions rotated around a center point (rather than radiating from the center).

The repeating-conic-gradient syntax is similar to the conic-gradient() and repeating-radial-gradient() syntax:

  • Like the non-repeating conic-gradient, the color-stops are placed around a gradient arc.
  • Like the repeating-radial-gradient, the size of the repeating section is the first color stop subtracted from the angle of the last color stop.
repeating-conic-gradient(from 0deg, red 0deg 30deg, yellow 30deg 60deg, blue 60deg 90deg);

repeating-radial-gradient(red 0 8%, yellow 8% 16%, blue 16% 24%);

conic-gradient(red 120deg, yellow 120deg 240deg, blue 240deg);

radial-gradient(red 33%, yellow 33% 66%, blue 66%);

Source MDN

How well did you know this?
1
Not at all
2
3
4
5
Perfectly