Super Cool CSS3 loading loading animation effects

Source: Internet
Author: User
Brief tutorials

This is a super cool CSS3 loading loading animation effect. This loading animation uses CSS3CSS3 animation animation to make, it is simple code, the effect is very cool.

How to use

HTML structure

Using a <div> element as the container for the loading animation, there are two child elements inside. Where div.loading-1 is the loading progress bar. Div.loading-2 is the loading text.

<div class= "Loader" >    <div class= "loading-1" ></div>    <div class= "Loading-2" >loading ...</div></div>

CSS Styles

The loading animation uses 3 animation animations, and the first load animation is for the progress bar to move from 0 to 100%. The second turn animation is used for the progress bar to rotate in the y-axis direction. A third bounce animation is used to bounce text.

. loader {width:150px;    margin:50px Auto 70px; Position:relative;}.    Loader. loading-1 {position:relative;    width:100%;    height:10px;    border:1px solid #69d2e7;    border-radius:10px; Animation:turn 4s linear 1.75s infinite;}.    Loader. Loading-1:before {content: "";    Display:block;    Position:absolute;    width:0%;    height:100%;    Background: #69d2e7;    box-shadow:10px 0px 15px 0px #69d2e7; animation:load 2s linear infinite;}.    Loader. loading-2 {width:100%;    Position:absolute;    top:10px;    Color: #69d2e7;    font-size:22px;    Text-align:center; animation:bounce 2s linear infinite;}    @keyframes Load {0% {width:0%;    } 87.5%, 100% {width:100%;    }} @keyframes Turn {0% {transform:rotatey (0deg);    } 6.25%, 50% {transform:rotatey (180deg);    } 56.25%, 100% {transform:rotatey (360deg);    }} @keyframes Bounce {0%,100% {top:10px; } 12.5% {top: 30px; }}

The above is super cool CSS3 loading loading animation effect content, more relevant content please pay attention to topic.alibabacloud.com (www.php.cn)!

  • 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.