-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
88 lines (83 loc) · 2.01 KB
/
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html>
<html>
<style>
.stick {
position: relative;
width: 200px;
height: 100px;
background: #F0DDC3;
transition: all 300ms 0s ease;
border-radius: 0px 50px 50px 0px;
/* animation-name: parrot; */
}
.stick:hover {
position: relative;
background: #ccc;
width: 1000px;
border-radius: 0px 50px 50px 0px;
animation-name: parrot;
animation-duration: 1s;
animation-iteration-count: infinite;
}
@keyframes parrot {
0% {
background-color: red;
}
10% {
background-color: yellow;
}
20% {
background-color: green;
}
30% {
background-color: blue;
}
40% {
background-color: violet;
}
50% {
background-color: red;
}
60% {
background-color: yellow;
}
70% {
background-color: green;
}
80% {
background-color: blue;
}
90% {
background-color: violet;
}
100% {
background-color: black;
}
}
.ball1 {
position: relative;
width: 100px;
height: 100px;
border-radius: 100px;
background:yellow;
}
.ball2 {
position: relative;
width: 100px;
height: 100px;
border-radius: 100px;
background:yellow;
}
.tintin {
position: relative;
}
</style>
<head></head>
<body>
<div class="tintin">
<div class="ball1"></div>
<div class="stick" ontouchstart=""></div>
<div class="ball2"></div>
</div>
</body>
</html>