您的位置:首页 > Web前端 > CSS

仅用CSS3创建h5预加载旋转圈

2016-07-30 15:51 435 查看

<head>

<meta charset="UTF-8">

<title></title>

<style type="text/css">

.quan{

position: relative;

border: 4px solid rgba(255,255,255,.25);

width: 80px;

height: 80px;

border-radius: 50%;

-webkit-animation: a 1s infinite linear;

}

span{

position: absolute;

width: 80px;

height: 80px;

border: 4px solid transparent;

border-top: 4px solid #fff;

top: -4px;

left: -4px;

border-radius: 50%;

 

}

@-webkit-keyframes a{

0%{-webkit-transform: rotate(0deg);}

100%{-webkit-transform: rotate(360deg);}

}

</style>

</head>

<body style="background-color: palevioletred;">

<div class="quan">

<span id=""></span>

</div>

</body>

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: