Gradients - Prefixed Syntax Flashcards
In the prefixed syntax, where should the direction value be defined?
first
Where does the color stop position need to be defined?
after the color value
In the prefixed syntax, what is the default direction of a linear gradient?
top to bottom
T/F: Gradients can be used in any property that accepts images.
True
How many color values are necessary to define a basic gradient?
2 comma-separated color values
In the prefixed syntax, what keyword would we use to define a gradient that starts on the left side of the box and ends on the right?
left
What components do we need in order to define a color stop?
1 color value and an optional position value
What defines a gradient that starts at the bottom-left corner and ends at top-right corner?
webkit-linear-gradient(45deg, color1, color2);
What keyword can we add to change the gradient’s end shape?
circle
T/F: The default shape of a radial gradient is a perfect circle.
False
What will create a radial gradient with an origin that is 20% from the top and 30% from the left?
-webkit-radial-gradient(30% 20%, circle, color1, color2);
What are the keywords we can use to describe how big the ending shape should be?
closest-side, closest-corner, farthest-side, and farthest-corner
In what order should the radial gradient’s shape, size, and position be defined?
position, shape, size