1. 程式人生 > >css3 載入中

css3 載入中

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
@-webkit-keyframes load{
0%{
transform:rotate(0);
}
50%{
transform:rotate(160deg);
}
100%{
transform:rotate(360deg);
}
}
.loading{
width: 40px;
height: 40px;
border: 4
px solid #aaa
; border-left-color: #ddd; border-radius: 24px; -webkit-animation:load 1s linear 1s infinite; }
</style> </head> <body> <div class="loading"></div> </body> </html>