-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
146 lines (124 loc) · 3.23 KB
/
style.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
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
body {
margin: 0;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
height: 100vh;
background: white;
font-family: 'Arima Madurai', cursive;
}
h1 {
margin: 0.4em;
}
canvas {
max-width: 75vw;
max-height: 75vh;
box-shadow: 0 0 6px 2px hsla(240, 100%, 2%, 0.3);
border: 1.5vmin solid white;
/*clip-path: polygon(0% 0%, 0% 0%, 0% 0, 0% 0%);*/
/*clip-path: inset(0px 0px 0px 0px);*/
/*clip-path: inset(0px 100% 0px 0px);*/
/*clip-path: polygon(0% 0%, 50% 0%, 50% 100%, 0% 100%);*/
/*clip-path: polygon(0% 0%, 75% 0%, 75% 100%, 0% 100%);*/
/*z-index: 1;*/
/*transition: clip-path 300ms;*/
/*animation: 1s polygon reverse;*/
}
@keyframes pixelate {
0% {
/*clip-path: polygon(0% 0%, 0% 0%, 0% 0, 0% 0%);*/
clip-path: inset(0px 100% 0px 0px);
}
100% {
/*clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);*/
clip-path: inset(0px 0px 0px 0px);
}
}
@keyframes polygon {
0% { clip-path: polygon(0 0, 50% 0, 100% 0, 100% 50%, 100% 100%, 50% 100%, 0 100%, 0 50%); }
100% { clip-path: polygon(50% 50%, 50% 25%, 50% 50%, 75% 50%, 50% 50%, 50% 75%, 50% 50%, 25% 50%); }
}
.split-diagonal img {
clip-path: polygon(0% 100%, 100% 1000%, 100% 0);
}
.split-diagonal img {
display: block;
z-index: 0;
/*clip-path: polygon(0% 100%, 100% 100%, 100% 0);*/
}
.pixelate-animation canvas {
animation: 1s pixelate;
/*clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);*/
/*clip-path: inset(0px 0px 0px 0px);*/
clip-path: none;
}
.frame:hover canvas {
/*animation: 1s pixelate;*/
/*clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);*/
/*display: block;*/
/*z-index: 0;*/
/*clip-path: polygon(0% 100%, 100% 100%, 100% 0);*/
/*clip-path: polygon(0% 100%, 100% 1000%, 100% 0, 0% 0%);*/
/*animation: 1s polygon reverse;*/
/*clip-path: polygon(0 0, 50% 0, 100% 0, 100% 50%, 100% 100%, 50% 100%, 0 100%, 0 50%);*/
}
img {
position: absolute;
left: 0;
top: 0;
max-width: 70vw;
max-height: 70vh;
padding: 2vmin;
z-index: -1;
display: none;
margin: 1.5vmin;
/*transition: clip-path 1s;*/
/*clip-path: polygon(0% 100%, 100% 100%, 100% 0, 0% 100%);*/
}
.frame {
display: flex;
background: #FFFDF3;
background: #FFF8FB;
position: relative;
border: 1.5vmin inset #181A1A;
padding: 2vmin;
box-shadow: 5px 5px 3px 0px hsla(240, 100%, 2%, 0.3);
box-shadow: 3px 5px 7px 3px hsla(240, 100%, 2%, 0.3);
}
.glass {
width: 100%;
height: 100%;
/*background: rgba(255, 0, 0, 0.3);*/
position: absolute;
top: 0;
left: 0;
background: linear-gradient(to bottom right, rgba(173, 173, 175, 0), rgba(162, 162, 162, 0.5));
}
.controls {
display: flex;
justify-content: center;
align-items: center;
font-size: 1.4em;
margin-top: 20px;
max-width: 100%;
}
.controlRow {
margin: 10px;
display: flex;
justify-content: center;
align-items: center;
width: 200px;
}
.controlRow label {
margin-right: 0.5em;
}
.controlRow select {
font-size: 1em;
width: 100%;
font-family: inherit;
}
.controlRow input {
font-size: 1em;
width: 100%;
}