CSS Gradients |
- linear gradient
- radial gradient
Syntax
The syntax for the linear gradient is,
Example
The following example specifies the transition of the linear gradients.
By default, the linear gradient flows from top to bottom, but you can change their location by specifying the direction.
If you want to customize the different direction, you can use angle to control specific direction. The following example describes the controls over the angle.
If you like to learn even more information about the linear gradients and the latest trends to apply them in logos and web design you can follow these two web sites, one is CSS Gradients and the other one is Color Space.
Using CSS Radial Gradients
The CSS radial gradients are used to make transitions like circular manner that starts from the center point.The following example illustrates the radial gradient,
By default, the radial gradient shape is ellipse but you can adjust them by using the absolute size or percentage.
There are four different types of radial gradient sizes in CSS these are,
- farthest-side
- farthest-corner
- closest-side
- closest-corner
We believe in this article you have learnt more information about CSS gradients, if you like to know more examples in this topics or if you have any queries you can leave a comment in the comment section below or you can simply send a mail to us.
Comments