mirror of
https://github.com/mileswolfallen2/miles-web.git
synced 2026-12-06 00:26:33 +00:00
Implement custom cursor effects across multiple project pages
This commit is contained in:
1 parent
cd0ecda8f9
commit
2e68953295
11 files changed
+233
-80
No files matched your search
+18
-1
@@ -7,6 +7,7 @@
|
||||
--accent:#FF3D9A;
|
||||
--tape:#FFC93C;
|
||||
--red:#FF0000;
|
||||
--green:#39FF14;
|
||||
--font-pixel:'Press Start 2P', monospace;
|
||||
--font-mono:'Space Mono', monospace;
|
||||
--font-body:'Inter', sans-serif;
|
||||
@@ -23,12 +24,28 @@ body::before{
|
||||
}
|
||||
body::after{
|
||||
content:'';position:fixed;inset:0;pointer-events:none;z-index:9998;
|
||||
background:repeating-linear-gradient(0deg,transparent,transparent 2px,rgba(0,0,0,0.12) 2px,rgba(0,0,0,0.12) 4px);
|
||||
background:repeating-linear-gradient(0deg,transparent,transparent 2px,rgba(0,0,0,0.15) 2px,rgba(0,0,0,0.15) 4px);
|
||||
}
|
||||
|
||||
::selection{background:var(--accent);color:#000;}
|
||||
a{color:inherit;text-decoration:none;}
|
||||
|
||||
*{cursor:none !important;}
|
||||
.cursor-dot,.cursor-ring{position:fixed;top:0;left:0;pointer-events:none;z-index:99999;border-radius:50%;}
|
||||
.cursor-dot{
|
||||
width:6px;height:6px;background:var(--accent);
|
||||
transform:translate(-50%,-50%);transition:width .2s,height .2s,background .2s;
|
||||
}
|
||||
.cursor-ring{
|
||||
width:36px;height:36px;border:2px solid var(--accent);
|
||||
transform:translate(-50%,-50%);transition:width .3s,height .3s,border-color .3s,opacity .3s;
|
||||
opacity:.5;
|
||||
}
|
||||
.cursor-dot.hover{width:10px;height:10px;background:var(--tape);}
|
||||
.cursor-ring.hover{width:50px;height:50px;border-color:var(--tape);opacity:.8;}
|
||||
@media(max-width:640px){.cursor-dot,.cursor-ring{display:none;}}
|
||||
@media(hover:none){.cursor-dot,.cursor-ring{display:none;}}
|
||||
|
||||
.container{max-width:1200px;margin:0 auto;padding:0 5vw;position:relative;z-index:2;}
|
||||
|
||||
/* NAV */
|
||||
|
||||
Reference in new issue
Block a user