Skip to content

Commit fd246cc

Browse files
Update index.html
1 parent 099e4b4 commit fd246cc

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

index.html

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,41 @@
1515
cursor: none;
1616
}
1717

18+
html,body{height:100%;min-height:500vh;margin:0;font-family:system-ui,sans-serif;overflow-x:hidden}
19+
.bg{position:absolute;inset:0;z-index:-1}
20+
.bg img{width:100%;display:block}
21+
22+
.glass{
23+
position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);
24+
width:20rem;height:20rem;border-radius:50%;
25+
background:rgba(255,255,255,.08);border:2px solid transparent;
26+
box-shadow:0 0 0 2px rgba(255,255,255,.6),0 16px 32px rgba(0,0,0,.12);
27+
backdrop-filter:url(#frosted);-webkit-backdrop-filter:url(#frosted);
28+
display:grid;place-items:center;cursor:pointer;outline:0;
29+
}
30+
31+
.glass::before,
32+
.glass::after{
33+
content:"";position:absolute;width:40%;height:10px;background:#fff;border-radius:10px;
34+
}
35+
.glass::after{transform:rotate(90deg)}
36+
37+
.glass::before,
38+
.glass::after{
39+
content:"";
40+
position:absolute;
41+
width:40%;
42+
height:10px;
43+
background:#fff;
44+
border-radius:10px;
45+
}
46+
47+
.glass::after{
48+
transform:rotate(90deg);
49+
}
50+
51+
52+
1853

1954

2055

@@ -119,6 +154,19 @@
119154
});
120155
</script>
121156

157+
<script>
158+
const cursor = document.querySelector('.glass');
159+
160+
document.addEventListener('mousemove', e => {
161+
cursor.style.left = e.clientX + 'px';
162+
cursor.style.top = e.clientY + 'px';
163+
});
164+
</script>
165+
166+
167+
<div class="glass"></div>
168+
169+
122170
<div class="links">
123171
<button class="collapsible glass">/etc</button>
124172

0 commit comments

Comments
 (0)