Skip to content

Commit 9c526fd

Browse files
ChrisMerinoDev - Hypnotic Loop (#2975)
* New Art by ChrisMerinoDev - Hypnotic Loop * Fixed Meta.json file indentation * Fixed meta.json file indentation & added all other files, ChrisMerinoDev - HypnoticLoop
1 parent 46d26bd commit 9c526fd

File tree

3 files changed

+91
-0
lines changed

3 files changed

+91
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width,initial-scale=1" />
6+
<title>Hypnotizing Loop</title>
7+
<link rel="stylesheet" href="styles.css">
8+
</head>
9+
<body>
10+
<div class="stage">
11+
<div class="disc" aria-hidden="true"></div>
12+
</div>
13+
14+
<div class="overlay">Hypnotizing Loop</div>
15+
</body>
16+
</html>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"artName": "HypnoticLoop",
3+
"githubHandle": "ChrisMerinoDev"
4+
}
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
:root{
2+
--speed: 20s;
3+
--segment: 18deg;
4+
--bg: #000; /* black */
5+
--fg: #fff; /* white */
6+
--diameter: 220vmax;
7+
}
8+
9+
*{ box-sizing:border-box; }
10+
11+
html, body{
12+
height:100%;
13+
margin:0;
14+
background: var(--bg);
15+
overflow:hidden;
16+
font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
17+
}
18+
19+
.stage{
20+
position: fixed;
21+
inset: 0;
22+
overflow: hidden;
23+
}
24+
25+
.disc{
26+
position: absolute;
27+
top:50%;
28+
left:50%;
29+
width: var(--diameter);
30+
height: var(--diameter);
31+
border-radius: 50%;
32+
transform: translate(-50%, -50%);
33+
background:
34+
repeating-conic-gradient(
35+
from 0deg,
36+
var(--bg) 0 var(--segment),
37+
var(--fg) var(--segment) calc(var(--segment) * 2)
38+
);
39+
animation: spin var(--speed) linear infinite;
40+
will-change: transform;
41+
}
42+
43+
.overlay{
44+
position: relative;
45+
z-index: 1;
46+
height: 100%;
47+
display: grid;
48+
place-items: center;
49+
font-weight: bold;
50+
51+
background: linear-gradient(90deg, black, white);
52+
background-clip: text;
53+
-webkit-background-clip: text;
54+
55+
color: white;
56+
-webkit-text-fill-color: white;
57+
58+
mix-blend-mode: difference;
59+
60+
pointer-events: none;
61+
font-size: 3rem;
62+
}
63+
64+
@keyframes spin{
65+
to { transform: translate(-50%, -50%) rotate(360deg); }
66+
}
67+
68+
@media (prefers-reduced-motion: reduce){
69+
.disc{ animation: none; }
70+
}
71+

0 commit comments

Comments
 (0)