-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathScrollCube.css
115 lines (100 loc) · 2.15 KB
/
ScrollCube.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
*{
margin: 0;
padding: 0;
}
html, body{
overflow:hidden;
height: 100%;
background-color: #fefefe;
font-family: tahoma;
}
#cubetransition{
position: relative;
width: 100%;
height: 100%;
perspective: 1200px;
transform-style: preserve-3d;
}
#cubetransition div{
min-height: 100%;
width: 100%;
position: absolute;
top: 0;
left: 0;
font-size: 5em;
color: white;
display: none;
}
.page1{
background-image: url(ListRandomizer/CheezCat1.jpg);
background-size: cover;
}
.page2{
background-image: url(ListRandomizer/CheezCat2.jpg);
background-size: cover;
}
.page3{
background-image: url(ListRandomizer/CheezCat3.jpg);
background-size: cover;
}
.page4{
background-image: url(ListRandomizer/CheezCat4.jpg);
background-size: cover;
}
.rotateCubeTopOut{
transform-origin: 50% 100%;
animation: rotateCubeTopOut .6s ease-in;
}
.rotateCubeTopIn{
transform-origin: 50% 0%;
animation: rotateCubeTopIn .6s ease-in;
}
.rotateCubeBottomOut{
transform-origin: 50% 0%;
animation: rotateCubeBottomOut .6s ease-in;
}
.rotateCubeBottomIn{
transform-origin: 50% 100%;
animation: rotateCubeBottomIn .6s ease-in;
}
@keyframes rotateCubeTopOut{
50%{
animation-timing-function: ease-out;
transform:translateY(-50%)
translateZ(-200px) rotateX(45deg);
}
100%{
transform:translateY(-100%)
rotateX(90deg);
}
}
@keyframes rotateCubeTopIn{
0%{
transform:translateY(100%)
rotateX(-90deg);
}
50%{
animation-timing-function: ease-out;
transform:translateY(50%)
translateZ(-200px) rotateX(90deg);
}
}
@keyframes rotateCubeBottomOut{
50%{
animation-timing-function: ease-out;
transform: translateY(50%)
translateZ(-200px) rotateX(-45deg);
}
100%{
transform: translateY(100%) rotateX(-90deg);
}
}
@keyframes rotateCubeBottomIn{
0%{
transform: translateY(100%) rotateX(90deg);
}
50%{
animation-timing-function: ease-out;
transform: translateY(-50%) translateZ(-200px) rotateX(45deg)
}
}