Use CSS3 to create a set of ultra-fashionable animation buttons and css3

Source: Internet
Author: User
Tags sample html code

Use CSS3 to create a set of ultra-fashionable animation buttons and css3

With the new feature of CSS3, we are more likely to create good interactions and effects. In this article, I would like to share someCSS3Animation button effect. Our idea is to create some animation link elements with different styles. When you hover over the mouse, there will be animation effects and Activity states.

 

 

Download the demo plug-in

 

Sample HTML code:

<a href="#" class="a-btn">    <span class="a-btn-slide-text">$29</span>        <span class="a-btn-text"><small>Available on the Apple</small> App Store</span>     <span class="a-btn-icon-right"><span></span></span></a>

Sample CSS code:

.a-btn{    background: linear-gradient(top, #a9db80 0%,#96c56f 100%);    padding-left: 90px;    padding-right: 105px;    height: 90px;    display: inline-block;    position: relative;    border: 1px solid #80ab5d;    box-shadow:         0px 1px 1px rgba(255,255,255,0.8) inset,         1px 1px 3px rgba(0,0,0,0.2);    border-radius: 4px;    float: left;    clear: both;    margin: 10px 0px;    overflow: hidden;    transition: box-shadow 0.3s ease-in-out;}.a-btn img{    position: absolute;    left: 15px;    top: 13px;    border: none;    transition: all 0.3s ease-in-out;}.a-btn .a-btn-slide-text{    position: absolute;    font-size: 36px;    top: 18px;    left: 18px;    color: #6d954e;    opacity: 0;    text-shadow: 0px 1px 1px rgba(255,255,255,0.4);    transition: opacity 0.2s ease-in-out;}.a-btn-text{    padding-top: 13px;    display: block;    font-size: 30px;    text-shadow: 0px -1px 1px #80ab5d;}.a-btn-text small{    display: block;    font-size: 11px;    letter-spacing: 1px;}.a-btn-icon-right{    position: absolute;    right: 0px;    top: 0px;    height: 100%;    width: 80px;    border-left: 1px solid #80ab5d;    box-shadow: 1px 0px 1px rgba(255,255,255,0.4) inset;}.a-btn-icon-right span{    width: 38px;    height: 38px;    opacity: 0.7;    border-radius: 20px;    position: absolute;    left: 50%;    top: 50%;    margin: -20px 0px 0px -20px;    border: 1px solid rgba(0,0,0,0.5);    background: #4e5c50 url(../images/arrow_down.png) no-repeat center center;    box-shadow:         0px 1px 1px rgba(255,255,255,0.3) inset,         0px 1px 2px rgba(255,255,255,0.5);    transition: all 0.3s ease-in-out;}

 

Articles you may be interested in
  • 10 useful results in Web development [Source Code download]
  • Excellent jQuery Ajax paging plug-ins and tutorials carefully selected
  • 12 amazing creative 404 error page Designs
  • Let the website get started! 12 excellent jQuery animation plug-ins
  • Amazing 8 HTML5 & JavaScript Special Effects

 

Link to this article: Learn How to Use CSS3 to create a set of beautiful animation buttons

Source: Dream sky ◆ focus on front-end development technology ◆ share web design resources


What do you know about soft ship training?

HTML5/CSS3 is the button special effects that can be used to write web pages. It is very practical. If you don't quite understand it, You can first understand the relationship between htmlhe and css. This is the programming knowledge.

How does css3 + html load the display animation instead of clicking a button to achieve the effect?

When loading the page, a js script is automatically loaded and the button is clicked.
 

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.