html
html
1
2
3
4
5
6
7
8
9
10
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<div class="circle"></div>
<div class="square"></div>
</body>
</html>
css
css
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
.square {
width: 100px;
height: 100px;
background-color: blue;
margin-bottom: 20px;
}
.square {
animation-name: rotation;
animation-duration: 1s;
animation-timing-function: linear;
animation-iteration-count: infinite;
}
.circle {
width: 100px;
height: 100px;
border-radius: 50%;
background-color: red;
margin-bottom: 20px;
}
.circle {
animation-name:move;
animation-duration:1s;
animation-timing-function:linear;
animation-iteration-count:infinite;
}
@keyframes rotation {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
js
js
1
BROWSER
Console
Run