-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
73 lines (69 loc) · 2.03 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
body {
background: black;
margin: 0;
overflow: hidden;
pointer-events: none;
cursor: url(https://sweezy-cursors.com/wp-content/uploads/cursor/arcane-mel-ring/arcane-mel-ring-cursor-32x32.png), auto;
-webkit-user-select: none;
user-select: none;
}
body::selection {
background: transparent;
}
:root {
--circle-color: rgba(255, 255, 255, 0.1);
--circle-ghost: rgba(0, 0, 0, 0.5);
--circle-size: 150px;
--mask-position: 0px 0px;
}
.container {
position: relative;
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.image {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
transition: opacity 0.5s ease;
}
.image.above {
z-index: 2;
opacity:inherit;
mask-image: radial-gradient(circle, var(--circle-ghost) var(--circle-size), rgba(0, 255, 0, 0) calc(var(--circle-size) + 50px));
-webkit-mask-image: radial-gradient(circle, var(--circle-ghost) calc(var(--circle-size)*(3/4)), rgba(0, 0, 0, 0) var(--circle-size));
mask-repeat: no-repeat;
-webkit-mask-repeat: no-repeat;
mask-position: var(--mask-position);
-webkit-mask-position: var(--mask-position);
}
.image.below {
z-index: 1;
}
.image-wrapper {
position: relative;
width: 100%;
height: 100%;
}
.image-wrapper::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: var(--circle-color);
mask-image: radial-gradient(circle, rgba(0,0,0,1) var(--circle-size), rgba(0, 255, 0, 0) calc(var(--circle-size) + 50px));
-webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) calc(var(--circle-size)*(3/4)), rgba(0, 0, 0, 0) var(--circle-size));
mask-repeat: no-repeat;
-webkit-mask-repeat: no-repeat;
mask-position: var(--mask-position);
-webkit-mask-position: var(--mask-position);
z-index: 3;
}