A few lines of CSS3 code for awesome loading animations

Source: Internet
Author: User

Before you shared the CSS3 implementation of the load animation. Today brings you a few lines of code to achieve an ultra-cool animation loading effects. Let's look at the following:

Online preview Source Download

Implementation code:

Minimalist HTML code:

< Div >        < I ></ I > </ Div >

CSS3 Code:

Body{background:Black;Display:-webkit-box;Display:-webkit-flex;Display:-ms-flexbox;Display:Flex;Height:100VH;}@-webkit-keyframes Rotation{0% {-webkit-transform:Rotate (0deg);Transform:Rotate (0deg); }100%{-webkit-transform:Rotate (360deg);Transform:Rotate (360deg); }} @keyframes Rotation{0% {-webkit-transform:Rotate (0deg);Transform:Rotate (0deg); }100%{-webkit-transform:Rotate (360deg);Transform:Rotate (360deg); }}div{width:200px;Height:200px;Border-radius:50%;Border:1px solid Rgba (0, 255, 0.5);-webkit-box-shadow:0px 0px 20px rgba (0, 255, 0.5), inset 0px 0px 20px rgba (0,, 255, 0.5);Box-shadow:0px 0px 20px rgba (0, 255, 0.5), inset 0px 0px 20px rgba (0,, 255, 0.5);margin:Auto;position:relative;}Div I{content: "";Display:Block;width:0;Height:15px;position:Absolute;Top:-webkit-calc (50%-5px);Top:Calc (50%-5px); Left:2px;-webkit-box-shadow:0px 0px 50px 10px #0078ff;Box-shadow:0px 0px 50px 10px #0078ff;-webkit-transform-origin:100px 0;-ms-transform-origin:100px 0;Transform-origin:100px 0;-webkit-animation:rotation linear 2s infinite;Animation:rotation linear 2s infinite;}

Original address: http://www.w2bc.com/Article/6293

A few lines of CSS3 code for awesome loading animations

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.