Use the CSS3 to make a halo with a meteor spin halo

Source: Internet
Author: User
This code that teaches you today is the effect of using CSS3 to make a meteor rotating halo with Halo, interested friends can do their own practice, the case listing code is as follows:

HTML {width:100%;height:100%;} Body {width:100%;height:100%;overflow:hidden;background-image:-webkit-linear-gradient (90deg, #395ecb 0, #3657be 35 %, #242161 75%, #1a0531 100%); Background-image:-moz-linear-gradient (90deg, #395ecb 0, #3657be 35%, #242161 75%, #1a0531 100%); Background-image:-ms-linear-gradient (90deg, #395ecb 0, #3657be 35%, #242161 75%, #1a0531 100%); background-image : Linear-gradient (0deg, #395ecb 0, #3657be 35%, #242161 75%, #1a0531 100%);p erspective:1000px;}. bg0 {width:500px;height:500px;top:50%;left:50%;transform:translate ( -50%, -50%); Background:url (.. /images/bg0.png) no-repeat center center;background-size:150%;}. BG1 {Width:100%;height:100%;background:url (.. /images/bg1.png) No-repeat Center Center;}. Hx-box {top:50%;left:50%;width:500px;height:500px;transform-style:preserve-3d;transform:translate (-50%,-50%) Rotatey (75deg);}. Hx-box ul {width:500px;height:500px;transform-style:preserve-3d;animation:hxz 20s linear infinite;} @keyframes hxz{0% {Transform:rotatex (0deg);} 100% {Transform:rotatex ( -360deg);}}. Hx-box ul li {width:500px;height:500px;border:4px solid #5ec0ff; border-radius:1000px;}. Hx-box ul Li span {display:block;width:100%;height:100%;background:url (.. /images/hx.png) no-repeat Center center;background-size:100% 100%;animation:hx 4s linear infinite;} @keyframes HX {to {transform:rotate (360deg);}}. HX-K2 {Transform:rotatex (60deg) Rotatez (60deg)}.hx-k3 {Transform:rotatex ( -60deg) Rotatez ( -60DEG)}

Have to say CSS3 is still very powerful, more exciting please pay attention to the PHP Chinese network other related articles!

Related reading:

How to make a CSS3 elastic box

What Web standards are in HTML

CSS3 How to make a responsive layout

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.