-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathintersect.css
More file actions
152 lines (137 loc) · 2.67 KB
/
intersect.css
File metadata and controls
152 lines (137 loc) · 2.67 KB
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
/*!
intersect.js v0.1.x
Copyright 2014 Nik Paro
Licensed under the BSD License. (gpl? mit?)
*/
*, *:before, *:after {
-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
}
html, body {
min-height: 100%;
}
.intersect {
position: relative;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.intersect-mask {
position: absolute;
pointer-events: none;
/* Nothing else? all generated by script. Means you could have several different..
in other words, give them ID's for quick recognition and stuff.
- Mask styles = clipping divs width, height, border-radius, transform properties ...
(not needed, save the DOM elements in a list locally. Apply styles to individual divs.) */
/*margin: -30px 0px 0px -40px;*/
top: 30px;
left: 40px;
width: 200px;
height: 300px;
border-radius: 20px;
overflow: hidden;
z-index: 60;
/*opacity: 0.99;*/
}
.intersect-content {
/* Set width, height, top & left in intersect.js */
position: absolute;
top: -30px;
left: -40px;
/*width: 100%;*/
/*height: 100%;*/
}
.container {
position: absolute;
/*top: 0; right: 0; bottom: 0; left: 0;*/
top: 0; right: 0;
width: 100%;
height: 100%;
display: block;
overflow: hidden;
/*overflow: scroll;*/
}
.page {
position: relative;
/*min-height: 200%;*/
/*width: 150%;*/
width: 100%;
height: 100%;
overflow: scroll;
}
.bigpage {
width: 150%;
height: 150%;
}
/*.page1 {
width: 100%;
}
*/
.bigtext {
font-size: 8rem;
font-family: 'Titillium Web', sans-serif;
font-weight: 900;
color: #000;
text-transform:uppercase;
letter-spacing: -0.05rem;
}
.bigtext-container {
position: absolute;
/*position: fixed;*/
z-index: 100;
left: 50%;
top: 50%;
-ms-transform: translate(-50%,-50%); /* IE 9 */
-webkit-transform: translate(-50%,-50%); /* Chrome, Safari, Opera */
transform: translate(-50%,-50%);
pointer-events: none;
}
.box1 {
position: absolute;
width: 50%;
height: 50%;
margin-left: 0%;
top: 50%;
left: 50%;
margin-top: 0%;
/*margin: 50%;*/
background: #ccc;
background: #700;
/*border-radius: 2em;*/
/*border-radius: 2em 1em 4em / 0.5em 3em;*/
border-radius: 4em 1em;
z-index: 55;
visibility: hidden;
}
.box2 {
position: absolute;
width: 30%;
height: 20%;
top: 20%;
left: 10%;
background: #0f0;
}
.spacer50 {
/*width: 150%;*/
height: 50%;
position: relative;
}
.box1clip {
color: #922;
z-index: 50;
background: #600;
text-shadow: 0px 0px 10px #400;
-moz-box-shadow: inset 0 0 10px #400;
-webkit-box-shadow: inset 0 0 10px #400;
box-shadow: inset 0 0 10px #400;
}
.box1clip .bigtext {
color: #922;
z-index: 60;
text-shadow: 0px 0px 10px #400;
}
#testdiv {
/*position: inherit;*/
/*position: initial;*/
position: absolute;
}