-
Notifications
You must be signed in to change notification settings - Fork 14
/
ball3.html
executable file
·46 lines (44 loc) · 1.12 KB
/
ball3.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
<!DOCTYPE HTML>
<html>
<head>
<title></title>
<meta charset="utf-8">
<link type="text/css" href="../styles/style-edit.css" rel="stylesheet">
<style type="text/css">
div {
padding: 20px;
margin: 20px;
border: 5px black solid!important;
color: white;
font-family: sans-serif;
text-align: center;
font-size: 2rem;
}
</style>
</head>
<body>
<style contenteditable id="editme">.ball {height: 50px; width: 50px;
border-radius: 50%;
background-color: red;
animation-name: bounce;
animation-duration: 5s;
animation-iteration-count: 1;
animation-timing-function: ease-in;
animation-direction: alternate;
}
@keyframes bounce {
0% {transform: translateY(0); animation-timing-function: ease-in;}
30% {transform: translateY(100px); animation-timing-function: ease-in;}
58% {transform: translateY(200px); animation-timing-function: ease-in;}
80% {transform: translateY(300px); animation-timing-function: ease-in;}
95% {transform: translateY(360px); animation-timing-function: ease-in;}
15%,
45%,
71%,
89%,
100% {transform: translateY(380px); animation-timing-function: ease-out;}
}
</style>
<div class="ball"></div>
</body>
</html>