-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
93 lines (66 loc) · 2.71 KB
/
style.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
body {
text-align: center;
}
.side{
width: 100px;
height: 100px;
border: 4px solid black;
animation: rotate 5s ease-out 1s alternate infinite;
}
.cube{
display: grid;
gap:10px;
grid-template-columns: repeat(3,100px);
grid-template-rows: repeat(3,100px);
position: relative;
}
@keyframes rotation {
0% { background-color: red; transform: rotateX(90deg) rotateY(90deg) rotateZ(-90deg);}
20% { background-color: white; transform: rotateX(-90deg) rotateY(-90deg) rotateZ(90deg);}
40% { background-color: yellow; transform: rotateX(90deg) rotateY(90deg) rotateZ(-90deg);}
60% { background-color: blue; transform: rotateX(-90deg) rotateY(-90deg) rotateZ(90deg);}
80% { background-color: green; transform: rotateX(90deg) rotateY(90deg) rotateZ(-90deg);}
100% {background-color: orange; transform: rotateX(-90deg) rotateY(-90deg) rotateZ(90deg);}
}
@keyframes changecolor
{
0% {background-color: red;}
20% {background-color: white;}
40% {background-color: yellow;}
60% {background-color: orange;}
80% {background-color: green;}
100% {background-color: blue;}
}
@keyframes rotate
{
0% { transform: rotateX(45deg) rotateY(0deg) rotateZ(-45deg);}
20% { transform: rotateX(90deg) rotateY(0deg) rotateZ(-90deg);}
40% { transform: rotateX(0deg) rotateY(-45deg) rotateZ(45deg);}
60% { transform: rotateX(0deg) rotateY(-90deg) rotateZ(90deg);}
80% { transform: rotateX(-45deg) rotateY(45deg) rotateZ(0deg);}
100% {transform: rotateX(-90deg) rotateY(90deg) rotateZ(0deg);}
}
.red {
background-color: red;
animation: rotate 10s ease-in 6s infinite, changecolor 3s ease infinite alternate-reverse, rotation 30s ease-out 20s alternate infinite;
}
.white {
background-color: white;
animation: rotate 10s ease-in 6s infinite, changecolor 2s ease infinite reverse, rotation 30s ease-out 20s alternate infinite;
}
.blue {
background-color: blue;
animation: rotate 10s ease-in 6s infinite, changecolor 1s ease infinite alternate-reverse, rotation 30s ease-out 20s alternate infinite;
}
.green {
background-color: green;
animation: rotate 10s ease-in 6s infinite, changecolor 3s ease infinite reverse, rotation 30s ease-out 20s alternate infinite;
}
.yellow {
background-color: yellow;
animation: rotate 10s ease-in 6s infinite, changecolor 2s ease infinite alternate-reverse, rotation 30s ease-out 20s alternate infinite;
}
.orange {
background-color: orange;
animation: rotate 10s ease-in 6s infinite, changecolor 1s ease infinite reverse, rotation 30s ease-out 20s alternate infinite;
}