CSS3 How to make transition gradient effect

Source: Internet
Author: User
You know there is a transition in the CSS3 effect, then this time to communicate with you about the transition gradient usage and the use of techniques, below give you a small example.

The CSS3 gradient (gradients) allows you to show a smooth transition between two or more specified colors.

-webkit-gradient (gradient type, starting point, end point, [start color, end color, transition color])

· Linear gradient (Linear gradients)-down/up/left/right/diagonal

· Radial gradients (Radial gradients)-defined by their centers

Linear-gradient (color 1, color 2)

Use of linear gradients:

Radial-gradient

Uniform color Distribution

Background:-webkit-radial-gradient (red, green, blue);

Color distribution by percentage

Background:-webkit-radial-gradient (red 5, Green 15%, Blue 60%);

Case LIST:

<!doctype html>

How to use the transition gradient so much more, please pay attention to the other related articles in PHP Chinese web!

Related reading:

How to use the absolute and relative paths of HTML

Drawing techniques used by canvas in HTML5

How HTML text is displayed vertically

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.