-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanimation.css
More file actions
46 lines (39 loc) · 890 Bytes
/
animation.css
File metadata and controls
46 lines (39 loc) · 890 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
body{
margin: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-image: linear-gradient(to bottom, #87ceeb, #f4f4f9);
font-family: Arial, sans-serif;
align-items: center;
margin: 0 auto;
}
.container{
position: relative;
width: 100px;
height: 300px;
border: 2px solid white;
background-image: #ffffff;
overflow: hidden;
border-radius: 10%;
/* animation: bounce 2s infinite ease-in-out; */
}
.ball{
position: absolute;
width: 50px;
height: 50px;
background-color: #ff6584;
border-radius: 50%;
animation: bounce 1s infinite ease-in-out;
box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
margin: 0 0 0 20px;
}
@keyframes bounce {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-200px);
}
}