Make a hello world page where it shows a sped-up timeline of a baby in a cradle all the way until an old man, showing the progression of human life. Make it have no words other than "hello world."
<!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 { color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
body {
display: grid;
place-items: center;
background: #0d1228;
font-family: system-ui, sans-serif;
}
main {
position: relative;
width: 100vw;
height: 100vh;
overflow: hidden;
background: #10162e;
}
canvas { display: block; width: 100%; height: 100%; }
h1 {
position: absolute;
top: clamp(28px, 7vh, 70px);
left: 0;
width: 100%;
margin: 0;
text-align: center;
color: #fff8df;
font-size: clamp(2rem, 6vw, 5.5rem);
font-weight: 700;
letter-spacing: .08em;
text-shadow: 0 3px 24px #090d20;
pointer-events: none;
}
</style>
</head>
<body>
<main>
<canvas id="life"></canvas>
<h1>hello world</h1>
</main>
<script>
const canvas = document.getElementById("life");
const ctx = canvas.getContext("2d");
let w, h, dpr, start = performance.now();
const clamp = (n,a=0,b=1) => Math.max(a, Math.min(b,n));
const ease = n => n*n*(3-2*n);
const mix = (a,b,t) => a + (b-a)*t;
const smooth = (a,b,x) => ease(clamp((x-a)/(b-a)));
function resize() {
dpr = Math.min(devicePixelRatio || 1, 2);
w = innerWidth; h = innerHeight;
canvas.width = w*dpr; canvas.height = h*dpr;
ctx.setTransform(dpr,0,0,dpr,0,0);
}
addEventListener("resize", resize);
resize();
function scene(t) {
const p = (t % 18000) / 18000;
const horizon = h * .77;
const night = .5 + .5*Math.sin(p*Math.PI*2);
const sky = ctx.createLinearGradient(0,0,0,h);
sky.addColorStop(0, `rgb(${mix(13,32,night)},${mix(19,32,night)},${mix(47,71,night)})`);
sky.addColorStop(1, "#d58b72");
ctx.fillStyle = sky;
ctx.fillRect(0,0,w,h);
const glow = ctx.createRadialGradient(w*.5,h*.43,0,w*.5,h*.43,h*.65);
glow.addColorStop(0,"rgba(255,222,159,.28)");
glow.addColorStop(1,"rgba(255,190,130,0)");
ctx.fillStyle = glow;
ctx.fillRect(0,0,w,h);
drawStars(p);
drawGround(horizon, p);
const early = 1 - smooth(.10,.25,p);
drawCradle(w*.5, horizon, early);
if (p < .28) drawBaby(w*.5, horizon, 1-smooth(.18,.29,p));
drawPerson(w*.5, horizon, p, smooth(.15,.30,p));
}
function drawStars(p) {
ctx.save();
const a = .2 + .55 * (1 - Math.sin(p*Math.PI*2)*.5-.2);
ctx.globalAlpha = clamp(a,.15,.7);
for (let i=0;i<38;i++) {
const x = (i*173 % 997)/997*w;
const y = (i*83 % 390)/390*h;
const r = (i%3===0 ? 1.7 : 1);
ctx.fillStyle = i%5===0 ? "#ffe7a8" : "#c7d8ff";
ctx.beginPath(); ctx.arc(x,y,r,0,Math.PI*2); ctx.fill();
}
ctx.restore();
}
function drawGround(y,p) {
const g = ctx.createLinearGradient(0,y,0,h);
g.addColorStop(0,"#29364a"); g.addColorStop(1,"#11182c");
ctx.fillStyle=g; ctx.fillRect(0,y,w,h-y);
ctx.fillStyle="rgba(245,186,119,.14)";
ctx.fillRect(0,y,w,3);
for(let i=0;i<18;i++){
const x=(i*131%101)/100*w;
ctx.strokeStyle="rgba(158,183,143,.18)";
ctx.lineWidth=2;
ctx.beginPath(); ctx.moveTo(x,y+3); ctx.quadraticCurveTo(x-8,y-8,x-15,y-16); ctx.stroke();
}
}
function drawCradle(cx,ground,a) {
if(a<=0) return;
ctx.save(); ctx.globalAlpha=a;
const y=ground-26, ww=Math.min(250,w*.42);
ctx.fillStyle="#9b5e50";
ctx.beginPath();
ctx.moveTo(cx-ww/2,y-55); ctx.quadraticCurveTo(cx,y+18,cx+ww/2,y-55);
ctx.lineTo(cx+ww/2-10,y-68); ctx.quadraticCurveTo(cx,y-4,cx-ww/2+10,y-68); ctx.closePath(); ctx.fill();
ctx.fillStyle="#e5b37e";
ctx.beginPath(); ctx.ellipse(cx,y-53,ww*.36,18,0,0,Math.PI*2); ctx.fill();
ctx.strokeStyle="#f5c993"; ctx.lineWidth=5;
ctx.beginPath(); ctx.moveTo(cx-ww*.44,y-63); ctx.quadraticCurveTo(cx,y+2,cx+ww*.44,y-63); ctx.stroke();
ctx.strokeStyle="#75473f"; ctx.lineWidth=7;
ctx.beginPath(); ctx.moveTo(cx-ww*.3,y-2); ctx.lineTo(cx-ww*.38,y+18);
ctx.moveTo(cx+ww*.3,y-2); ctx.lineTo(cx+ww*.38,y+18); ctx.stroke();
ctx.restore();
}
function drawBaby(cx,ground,a) {
ctx.save(); ctx.globalAlpha=a;
const y=ground-66;
ctx.fillStyle="#f4c28e";
ctx.beginPath(); ctx.ellipse(cx-17,y,43,20,-.08,0,Math.PI*2); ctx.fill();
ctx.fillStyle="#f5c894";
ctx.beginPath(); ctx.arc(cx-52,y-8,17,0,Math.PI*2); ctx.fill();
ctx.fillStyle="#6d4350";
ctx.beginPath(); ctx.arc(cx-57,y-19,13,Math.PI,Math.PI*1.8); ctx.fill();
ctx.strokeStyle="#f4c28e"; ctx.lineWidth=8; ctx.lineCap="round";
ctx.beginPath(); ctx.moveTo(cx-28,y-8); ctx.lineTo(cx-3,y-22); ctx.moveTo(cx+3,y+9); ctx.lineTo(cx+30,y+17); ctx.stroke();
ctx.restore();
}
function drawPerson(cx,ground,p,a) {
if(a<=0) return;
const old=smooth(.76,.98,p);
const child=smooth(.28,.48,p);
const teen=smooth(.43,.62,p);
const grow=clamp((p-.2)/.6);
const ht=mix(h*.22,h*.62,ease(grow)) * (1-.13*old);
const foot=ground-7;
const lean=mix(0,23,old);
const x=cx+lean;
const headR=mix(12,25,clamp((p-.15)/.8));
const headY=foot-ht+headR+mix(0,18,old);
const shoulderY=headY+headR*2.1;
const hipY=foot-ht*.32;
const bodyW=mix(20,43,clamp((p-.2)/.65));
const skin=old ? "#b99378" : "#e2ad80";
ctx.save(); ctx.globalAlpha=a;
ctx.strokeStyle="#1b2133"; ctx.lineCap="round"; ctx.lineJoin="round";
ctx.fillStyle=skin;
ctx.beginPath(); ctx.arc(x,headY,headR,0,Math.PI*2); ctx.fill();
if(old) {
ctx.strokeStyle="#e0c5a6"; ctx.lineWidth=3;
ctx.beginPath(); ctx.arc(x-4,headY-2,headR*.82,.25,2.7); ctx.stroke();
}
ctx.fillStyle=old?"#d5d2c7":"#493d56";
ctx.beginPath();
ctx.arc(x-2,headY-headR*.62,headR*.86,Math.PI*1.05,Math.PI*1.92);
ctx.lineTo(x+headR*.55,headY-headR*.28); ctx.quadraticCurveTo(x+3,headY-headR*.76,x-2,headY-headR*.62);
ctx.fill();
ctx.fillStyle=old?"#647080":"#4a607b";
ctx.beginPath();
ctx.moveTo(x-bodyW*.52,shoulderY);
ctx.quadraticCurveTo(x,shoulderY-9,x+bodyW*.52,shoulderY);
ctx.lineTo(x+bodyW*.35,hipY); ctx.quadraticCurveTo(x,hipY+10,x-bodyW*.35,hipY); ctx.closePath(); ctx.fill();
ctx.strokeStyle=skin; ctx.lineWidth=Math.max(7,bodyW*.22);
const armDrop=mix(42,65,clamp((p-.25)/.7));
ctx.beginPath(); ctx.moveTo(x-bodyW*.42,shoulderY+5); ctx.lineTo(x-bodyW*.62,shoulderY+armDrop); ctx.lineTo(x-bodyW*.48,foot-3); ctx.stroke();
ctx.beginPath(); ctx.moveTo(x+bodyW*.42,shoulderY+5); ctx.lineTo(x+bodyW*.62,shoulderY+armDrop); ctx.lineTo(x+bodyW*.48,foot-3); ctx.stroke();
ctx.strokeStyle="#303a50"; ctx.lineWidth=Math.max(8,bodyW*.25);
const stride = Math.sin(p*Math.PI*10)*mix(0,7,1-old);
ctx.beginPath(); ctx.moveTo(x-bodyW*.2,hipY); ctx.lineTo(x-bodyW*.28-stride,foot); ctx.stroke();
ctx.beginPath(); ctx.moveTo(x+bodyW*.2,hipY); ctx.lineTo(x+bodyW*.28+stride,foot); ctx.stroke();
if(old) {
ctx.strokeStyle="#a87b5d"; ctx.lineWidth=4;
ctx.beginPath(); ctx.moveTo(x+bodyW*.7,shoulderY+10); ctx.lineTo(x+bodyW*.78,foot+4); ctx.stroke();
ctx.beginPath(); ctx.arc(x+bodyW*.78,foot+5,4,0,Math.PI*2); ctx.stroke();
}
ctx.restore();
}
function frame(t) {
scene(t);
requestAnimationFrame(frame);
}
requestAnimationFrame(frame);
</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 Connor Bates. 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.