Create a one page html file to say hello world with that changes colors as you move your cursor
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hello, World</title>
<style>
:root { --hue: 210; --x: 50%; --y: 50%; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
min-height: 100vh;
overflow: hidden;
display: grid;
place-items: center;
color: white;
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
background:
radial-gradient(circle at var(--x) var(--y),
hsl(var(--hue) 95% 68% / .9) 0,
hsl(calc(var(--hue) + 55) 80% 45% / .65) 22%,
transparent 58%),
linear-gradient(135deg,
hsl(calc(var(--hue) - 45) 70% 18%),
hsl(calc(var(--hue) + 35) 75% 12%));
transition: background .18s ease-out;
}
main {
text-align: center;
padding: 3rem;
user-select: none;
}
h1 {
margin: 0;
font-size: clamp(4rem, 15vw, 11rem);
line-height: .9;
letter-spacing: -.08em;
font-weight: 800;
text-shadow: 0 10px 35px hsl(var(--hue) 90% 8% / .35);
transition: transform .25s ease, filter .25s ease;
}
p {
margin: 2rem 0 0;
font-size: clamp(.9rem, 2vw, 1.1rem);
letter-spacing: .18em;
text-transform: uppercase;
opacity: .8;
}
main:hover h1 { transform: scale(1.035) rotate(-1deg); filter: brightness(1.12); }
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { transition: none !important; }
}
</style>
</head>
<body>
<main aria-label="Hello world">
<h1>Hello,<br>World!</h1>
<p>Move your cursor to paint the sky</p>
</main>
<script>
const root = document.documentElement;
function paint(x, y) {
const w = innerWidth, h = innerHeight;
const hue = Math.round((x / w) * 360 + (1 - y / h) * 70) % 360;
root.style.setProperty("--x", `${x}px`);
root.style.setProperty("--y", `${y}px`);
root.style.setProperty("--hue", hue);
}
addEventListener("pointermove", e => paint(e.clientX, e.clientY));
addEventListener("pointerdown", e => paint(e.clientX, e.clientY));
paint(innerWidth / 2, innerHeight / 2);
</script>
</body>
</html>
Nothing. This page is entirely self-contained and contacts no other website when it runs.
Published on Globefin under the MIT License. You may copy, change, and reuse this page, including commercially — just keep the notice below with it.
Copyright © 2026 Finn O'neill. Licensed under the MIT License. Published on Globefin.
Provided as is, without warranty. Any external libraries it loads keep their own licences. Terms →
Scripts run, but the demo has its own throwaway origin. It can't read your session or cookies, can't reach the page around it, and can't navigate your tab. Don't enter real passwords or personal data into any demo.