-
Notifications
You must be signed in to change notification settings - Fork 16
/
index.html
52 lines (47 loc) · 970 Bytes
/
index.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
47
48
49
50
51
52
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>react-animate-on-change exmaple</title>
<style>
.Score {
background-color: #000;
color: #fff;
padding: 5px;
border-radius: 3px;
position: fixed;
top: 45%;
left: 45%;
}
.Score--bounce {
animation: Score-keyframes--bounce .8s ease-out
}
@keyframes Score-keyframes--bounce {
0%,
to {
transform: rotate(0)
}
10% {
transform: scale(1.1)
}
20% {
transform: rotate(4deg) translateY(-12px)
}
40% {
transform: rotate(2deg) translateY(0)
}
60% {
transform: rotate(-2deg) translateY(-8px)
}
80% {
transform: rotate(-1deg) translateY(0)
}
}
</style>
</head>
<body>
<div id="root"></div>
<script src="bundle.js"></script>
</body>
</html>