Pages

CSS3 Gradients

CSS3 gradients let you display smooth transitions between two or more specified colors.
Earlier, you had to use images for these effects. However, by using CSS3 gradients you can reduce download time and bandwidth usage. In addition, elements with gradients look better when zoomed, because the gradient is generated by the browser.
CSS3 defines two types of gradients:
  • Linear Gradients (goes down/up/left/right/diagonally)
  • Radial Gradients (defined by their center)

CSS3 Linear Gradients

Using Angles

Using Multiple Color Stops

Using Transparency

Repeating a linear-gradient

CSS3 Radial Gradients

Set Shape

Use of Different Size Keywords

Repeating a radial-gradient

 

 

 

 

 

 

 

 

No comments:

Flag Counter
Designed by vnBloggertheme.com | Copyright © 2013 Remote Tutor