forked from kkkombo/HTML-CSS-practice
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanimation-bounce.html
More file actions
41 lines (40 loc) · 1.1 KB
/
animation-bounce.html
File metadata and controls
41 lines (40 loc) · 1.1 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Follow the Bouncing Ball!</title>
<meta name="author" value="Alexandra Dedok" />
<meta name="description" value="Animationg Balls" />
<meta name="keywords" content="HTML, CSS" />
<style>
div {
width: 700px;
height: 600px;
background: lightskyblue;
}
p.ball {
width: 50px;
height: 50px;
border-radius: 50%;
background: #000000;
animation: bounce 3s infinite alternate;
animation-timing-function: linear;
}
@keyframes bounce {
0% {
transform: translate(0px,0px);
}
50% {
transform: translate(325px, 550px);
}
100% {
transform: translate(650px, 0);
}
}
</style>
</head>
<body>
<div>
<p class="ball"></p>
</div>
</body>
</html>