-
Notifications
You must be signed in to change notification settings - Fork 0
/
a.css
117 lines (115 loc) · 1.83 KB
/
a.css
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
body{
display: inline-flex;
justify-content:center;
width: 100%;
height: 100vh;
margin: 0;
flex-wrap: wrap;
background-color:rebeccapurple;
}
h1{
font-size: 100px;
margin: 0 auto;
display: block;
width: 100%;
text-align:center;
color: white;
height:0;
animation: hanime .4s .5s linear ;
animation-fill-mode:backwards;
}
section{
display: inline-flex;
color: white;
width: 40%;
height: 50%;
justify-content:center;
flex-wrap: wrap;
margin: 0 auto;
border-radius: 30px;
}
.diva{
background: aqua;
width: 28%;
margin: 10px;
border-radius: 10px;
text-align:center;
padding-top: 10px;
font-size: 70px;
height: 25%;
animation: start 1s 1s;
animation-fill-mode: both;
}
.diva:hover{
background-color:whitesmoke;
}
@keyframes hanime{
0%{
transform: translate(-1000px);
opacity: 0;
}
50%{
transform: translate(-100px);
opacity: .8;
}
90%{
opacity: 1;
transform: rotate(3deg);
}
100%{
opacity: 1;
transform: translate(0px);
}
}
@keyframes rotate{
30%{
transform: rotate(180deg);
}
70%{
transform: rotate(270deg);
opacity: .5;
}
100%{
transform: rotate(360deg);
opacity: 0;
}
}
@keyframes start {
0%{
opacity: 0;
}
30%{
transform: rotate(-90deg);
opacity: .2;
}
70%{
transform: rotate(-180deg);
opacity: .6;
}
100%{
transform: rotate(-360deg);
opacity: 1;
}
}
.won{
transition: transform 1s 1.5s;
transform: translateY(320px);
}
@keyframes back{
25%{
background-color: darkblue;
}
50%{
background-color: darkred;
}
75%{
background-color: greenyellow;
}
100%{
background-color: coral;
}
}
.back{
animation: back 1.5s 1s;
animation-iteration-count: infinite;
}