-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclip.css
114 lines (101 loc) · 1.38 KB
/
clip.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
* {
box-sizing: border-box;
padding: 0;
margin: 0;
}
a {
text-decoration: none;
}
.intro {
position: relative;
width: 100%;
height: 100vh;
}
.left {
float: left;
height: 100%;
width: 60%;
padding: 3rem 3rem 3rem 5rem;
display: table;
}
.left > div {
display: table-cell;
vertical-align: middle;
}
span {
}
h1 {
}
h1 + p {
}
p + a {
}
.slider {
float: right;
position: relative;
width: 40%;
height: 100%;
}
.slider li {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-size: cover;
background-repeat: no-repeat;
background-position: 50% 50%;
transition: clip .7s ease-in-out, z-index 0s .7s;
clip: rect(0, 100vw, 100vh, 100vw);
display: table;
}
.center-y {
display: table-cell;
vertical-align: middle;
text-align: center;
color: #fff;
}
h3 {
}
h3 + a {
}
h3, h3 + a {
}
li.current h3, li.current h3 + a {
opacity: 1;
transition-delay: 1s;
transform: translate3d(0, 0, 0);
}
li.current {
z-index: 1;
clip: rect(0, 100vw, 100vh, 0);
}
li.prev {
clip: rect(0, 0, 100vh, 0);
}
.slider nav {
position: absolute;
bottom: 5%;
left: 0;
right: 0;
text-align: center;
z-index: 10;
}
nav a {
display: inline-block;
margin: 0 1rem;
transition: transform .3s;
}
a.current_dot {
transform: scale(1.4);
}
@media screen and (max-width: 700px) {
.left {
width: 100%;
height: 30%;
}
.slider {
width: 100%;
height: 70%;
}
}