-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathstyles.css
92 lines (79 loc) · 1.45 KB
/
styles.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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
height: 100vh;
}
.portfolio {
width: 100%;
height: 100%;
position: relative;
overflow: hidden;
transition: all .7s;
margin: auto;
}
.layer-group {
width: 100%;
height: 100%;
position: absolute;
left: 0;
display: flex;
flex-direction: column;
flex-wrap: wrap;
transition: all .7s;
}
.layer {
width: 100%;
height: 100%;
font-size: 0;
display: none;
position: absolute;
transition: all .7s;
background: purple;
}
.layer:first-child {
display: block;
}
iframe {
width: 33.33%;
height: 50%;
border: none;
}
.control {
position: absolute;
width: 80px;
height: 100%;
z-index: 10;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
background-color: rgba(255, 255, 255, 0.2);
}
.control.next { right: 0; }
.control .arrow { position: relative; }
.control.prev .arrow { left: 7px; }
.control.next .arrow {
transform: rotate(180deg);
transform-origin: top;
right: 7px;
}
.control .arrow:after,
.control .arrow:before {
content: '';
border-width: 2px 0 0 0;
border-style: solid;
border-color: #fff;
width: 60px;
display: block;
transform: rotate(45deg);
transform-origin: left;
}
.control .arrow:after { transform: rotate(-45deg); }
.control:hover { background-color: rgba(255, 255, 255, 0.3); }
.control:active {
background-color: rgba(255, 255, 255, 0.4);
transform: scale(1.1);
}