-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrotatingHIi.html
29 lines (29 loc) · 978 Bytes
/
rotatingHIi.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
<html>
<head>
<style>
div{
width: 300px;
height: 300px;
background-color: lightskyblue;
animation-name: animate1;
animation-duration: 5s;
animation-delay: 1s;
animation-direction: normal;
animation-iteration-count: 1;
position:absolute;
border-radius: 50%;
border: 5px colid black;
text-align:center;
font-size:xx-large;
}
@keyframes animate1{
0%{background-color: lightskyblue;top:0px;left:0px}
50%{background-color: green;top:300px;left:300px;transform: rotate(180deg);}
100%{background-color: darkred;top:0px;left:600px;transform: rotate(360deg);}
}
</style>
</head>
<body>
<div>Hi</div>
</body>
</html>