CSS3 Web Page Production Example: CSS3 Create creative Style button

Source: Internet
Author: User

Article Introduction: a creative Style button written with CSS3. This set of button style when the mouse passes, click on a number of subtle transformations, including some simple css3 transition effects, animation effects and JavaScript auxiliary control effect.

Today we share some creative style buttons written with CSS3. This set of button style when the mouse passes, click on a number of subtle transformations, including some simple css3 transition effects, animation effects and JavaScript auxiliary control effect. In this set of creative style buttons, many places are cleverly used: before and: After the pseudo elements.

View Preview Download attachment

Basic HTML structure and style examples

Here's an example of a specific effect and implementation method. Creating a button is very simple and requires only one <button></button> tag.

<button class= "btn btn-6 btn-6d" >Button</button>

As you can see from the code above, several styles are added (btn btn-6 btn-6d), where the "btn" is a common style and the other two are specific styles for a particular button. Here is the use of a CSS writing tips, when we write CSS style, we can extract the public parts, and then call where needed. The CSS code written in this way will be easier to maintain and brief, as well as ensure a consistent style in the page.

Here is a specific style for one of the examples (Button 6d):

/* Button 6d * *
. btn-6d {border:2px dashed #226fbe;}
  . btn-6d:hover {background:transparent; color: #226fbe;}

This part of the style determines the difference between the specific buttons.

View Preview Download attachment

Well, the specific creative style of each button, you can look at the demo page, hope can bring you help and inspiration.



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.