-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbouncing-ball.css
More file actions
56 lines (48 loc) · 809 Bytes
/
Copy pathbouncing-ball.css
File metadata and controls
56 lines (48 loc) · 809 Bytes
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
55
56
img{
width: 200px;
transform: rotateX(2);
top: 50%;
}
body{
text-align: center;
height:100%;
margin:0;
}
html{
height:100%;
}
.circle{
position: relative;
width:100px;
padding-top: 50px;
padding-bottom: 50px;
margin: auto;
border: 1px solid white;
border-radius: 300px;
background: teal;
color: white;
/* transition: background 1s, transform 2s 1s ease-out; */
animation: drop 1.2s both cubic-bezier(.53,.01,.76,.47);
}
@keyframes drop {
0%{top:-110px;}
20%{top:400px;}
40%{top:150px;}
60%{top:400px;}
80%{top:250px;}
100%{top:400px;}
}
/* @keyframes first-down{
0%{top:-102px;}
100%{top:450px;}
}
@keyframes first-up{
0%{top:450px;}
100%{top:100px;}
} */
.floor{
height:10px;
background: dimgray;
position: relative;
top:512px;
}