A pure CSS3 implementation of the stripe loading bar

Source: Internet
Author: User

Before for everyone to bring a lot of loading animations. A progress add-on based on the Prefixfree.js, based on the jquery band percentage of the responsive progress add-on bar. Today to share a pure CSS3 implementation of the stripe loading bar. The effect with a responsive style. As follows:

Online preview Source Download

The implemented code.

HTML code:

<class= "container">        <class = "Warning" >        </ Div >    </ Div >

CSS3 Code:

. Warning{position:relative;Background-color:#6DA807;Border:1px solid #6DA807;Border-radius:10px;Box-shadow:1vw 3VH 10VH rgba (109, 168, 7, 0.8);background-size:3em 3em;Background-image:linear-gradient ( -45deg, transparent 0em, transparent 0.8em, #96D923 0.9em, #96D923 2.1em, Transparent 2.1em, Transpar Ent 2.9em, #96D923 3.1em);-webkit-animation:warning-animation 750ms Infinite linear;-moz-animation:warning-animation 750ms Infinite linear;Animation:warning-animation 750ms Infinite linear;}@-webkit-keyframes warning-animation{0% {background-position:0 0; }100%{background-position:3em 0; }}@-moz-keyframes warning-animation{0% {background-position:0 0; }100%{background-position:3em 0; }} @keyframes warning-animation{0% {background-position:0 0; }100%{background-position:3em 0; }}.warning:before{content:"';position:Absolute;Top:0; Left:0; Right:0;Bottom:0;Height:100%;Border-radius:10px;Background-image:linear-gradient (to bottom, #6DA807, Rgba (171, 226,, 0.6) 15%, transparent 60%, #6DA807);}Body, HTML{position:Absolute;Top:0; Left:0;Bottom:0; Right:0;Height:100%;}Body{background-repeat:no-repeat;background-position:Center;Background-image:radial-gradient (Circle, #c0e979, #96d923);}. Container{width:80VW;margin:45VH Auto 0;}. Container. Warning{Height:10VH;}

via:http://www.w2bc.com/article/18415

A pure CSS3 implementation of the stripe loading bar

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.