-
Notifications
You must be signed in to change notification settings - Fork 1
/
gridactually.css
98 lines (88 loc) · 2.06 KB
/
gridactually.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
body {
overflow: hidden;
background: #fff;
margin: 0;
padding: 0;
}
h1 {
margin-top: -80px;
position: absolute;
top: 50%;
width: 100%;
z-index: 2;
color: #333;
text-align: center;
font: 200 9vh/15vh "Helvetica Neue", "Roboto-Light", "Segoe UI", Helvetica, Arial, sans-serif;
background: rgba(255,255,255,0.91);
padding: 20px 0;
}
.gridactually-container {
width: 100%;
overflow: hidden;
}
.gridactually {
height: 100%;
background-color: #fff;
width: auto;
overflow: hidden;
z-index: 0;
}
.gridactually .box {
float: left;
perspective: 1000;
}
.gridactually .box.flipped .images {
-webkit-transform: rotate3d(0, 1, 0, 180deg);
-moz-transform: rotate3d(0, 1, 0, 180deg);
-o-transform: rotate3d(0, 1, 0, 180deg);
-ms-transform: rotate3d(0, 1, 0, 180deg);
transform: rotate3d(0, 1, 0, 180deg);
}
.gridactually .box .images {
-webkit-transition: -webkit-transform 0.6s;
-moz-transition: -moz-transform 0.6s;
-o-transition: -o-transform 0.6s;
-ms-transition: -ms-transform 0.6s;
transition: transform 0.6s;
-webkit-transform-style: preserve-3d;
-moz-transform-style: preserve-3d;
-o-transform-style: preserve-3d;
-ms-transform-style: preserve-3d;
transform-style: preserve-3d;
position: relative;
}
/* hide back of pane during swap */
.gridactually .box .front,
.gridactually .box .back {
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
backface-visibility: hidden;
position: absolute;
top: 0;
left: 0;
}
.gridactually .box .front {
z-index: 1;
background-repeat: no-repeat;
background-color: #999;
background-size: cover;
}
.gridactually .box .back {
-webkit-transform: rotate3d(0, 1, 0, 180deg);
-moz-transform: rotate3d(0, 1, 0, 180deg);
-o-transform: rotate3d(0, 1, 0, 180deg);
-ms-transform: rotate3d(0, 1, 0, 180deg);
transform: rotate3d(0, 1, 0, 180deg);
}
.gridactually-image {
position: absolute;
top: -3000px;
}
.gridactually-overlay {
background-color: rgba(255, 255, 255, 0.14);
position: absolute;
top: 0;
left: 0;
z-index: 1;
width: 100%;
}