Nice buttons (CSS transitions and link styles)

Source: Internet
Author: User

HTML Code:

< Body > <  class= "Anniu"  href= "http://www.baidu.com/">         Baidu a bit </a></body>

CSS Code:

/*CSS Document*/. Anniu{Display:Block;width:120px;Height:40px;Background-color:#333333;Color:#FFFFFF;text-align:Center;font-size:18px;Line-height:40px;Border-radius:25px;Border:None;Box-shadow:None;text-decoration:None;transition:Box-shadow 0.5s;-webkit-transition:Box-shadow 0.5s;}. Anniu:hover{Box-shadow:0px 0px 5px 1px #808080;}. Anniu:active{Box-shadow:0px 0px 5px 1px #FF0000;}

Detailed

Link Style:

    • A:link-Normal, not visited links
    • A:visited-links that have been visited by the user
    • A:hover-When the user mouse is placed on the link
    • A:active-the moment the link was clicked

Transition properties:

1. Specify the Name,transition effect of CSS Properties

2, transition effect need to specify how many seconds or milliseconds to complete

3, specify the speed curve of transition effect

4, the definition of transition effect when the beginning

Nice buttons (CSS transitions and link styles)

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.