-
Notifications
You must be signed in to change notification settings - Fork 15
/
ya_animation2.html
54 lines (46 loc) · 1.1 KB
/
ya_animation2.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html>
<html>
<head>
<title>
CSS ANIMATION
</title>
<style>
html {
background: #2ecc71;
}
.square {
border: 0;
width: 80px;
padding: 0px;
margin-top: 90px;
margin-left: calc(50% - 40px);
margin-left: -webkit-calc(50% - 40px);
margin-left: -moz-calc(50% - 40px);
background: #2ecc71;
}
.spin {
height: 70px;
width: 70px;
border-radius: 50%;
border: dashed 5px white;
-webkit-animation-name: spin;
-webkit-animation-duration: 1.5s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
}
@-webkit-keyframes spin {
from {
-webkit-transform: rotate(0deg);
}
to {
-webkit-transform: rotate(360deg);
}
}
</style>
</head>
<body>
<div class="square">
<div class="spin"></div>
</div>
</body>
</html>