<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Hello World Beach Run</title>
<style>
:root{--ink:#17324d;--coral:#ff806d;--cream:#fff8e9}
*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden}
body{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:var(--ink);background:#f8d79e}
canvas{position:fixed;inset:0;width:100%;height:100%}
main{position:relative;z-index:2;min-height:100%;padding:clamp(28px,7vw,80px) clamp(22px,8vw,120px);display:flex;flex-direction:column;justify-content:space-between;pointer-events:none}
.eyebrow{font-weight:800;letter-spacing:.16em;text-transform:uppercase;font-size:.72rem;color:#27617a}
h1{font-size:clamp(3.5rem,11vw,9rem);line-height:.84;letter-spacing:-.08em;margin:.3em 0 0;max-width:750px;color:#17324d}
h1 span{color:var(--coral)}
.note{font-size:clamp(1rem,2vw,1.25rem);max-width:390px;line-height:1.5;margin-top:22px;color:#28526b}
.controls{display:flex;align-items:center;gap:14px;pointer-events:auto}
button{border:0;border-radius:999px;background:#17324d;color:white;padding:13px 20px;font:700 .95rem system-ui;cursor:pointer;box-shadow:0 7px 0 #0d263b;transition:transform .15s,box-shadow .15s}
button:hover{transform:translateY(-2px);box-shadow:0 9px 0 #0d263b}
button:active{transform:translateY(3px);box-shadow:0 3px 0 #0d263b}
button:focus-visible{outline:4px solid #fff;outline-offset:4px}
.hint{font-size:.85rem;color:#28526b}
@media(max-width:600px){main{padding:30px 24px 26px}h1{font-size:clamp(3.7rem,19vw,6rem)}.note{max-width:280px}.hint{display:none}}
</style>
</head>
<body>
<canvas id="scene" aria-label="An animated runner crossing a sunny beach"></canvas>
<main>
<section>
<div class="eyebrow">A tiny morning adventure</div>
<h1>Hello<br><span>world.</span></h1>
<p class="note">One small step, one big horizon. Keep going — the tide is cheering you on.</p>
</section>
<div class="controls">
<button id="toggle" type="button">Pause run</button>
<span class="hint">Press space to pause</span>
</div>
</main>
<script>
const canvas=document.getElementById('scene'),ctx=canvas.getContext('2d'),toggle=document.getElementById('toggle');
let W,H,dpr,run=true,t=0,last=0,hello=0;
function resize(){dpr=devicePixelRatio||1;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 line(points,color,width=2){ctx.beginPath();points.forEach((p,i)=>i?ctx.lineTo(...p):ctx.moveTo(...p));ctx.strokeStyle=color;ctx.lineWidth=width;ctx.lineCap='round';ctx.stroke()}
function drawRunner(x,y,s,phase){
ctx.save();ctx.translate(x,y);ctx.scale(s,s);ctx.strokeStyle='#17324d';ctx.fillStyle='#17324d';ctx.lineWidth=5;ctx.lineCap='round';
ctx.beginPath();ctx.arc(0,-53,9,0,7);ctx.fill();
line([[0,-43],[-2,-17]],'#17324d',6);
line([[-1,-34],[-22,-24+Math.sin(phase)*4]],'#17324d',5);
line([[-1,-34],[19,-27-Math.sin(phase)*4]],'#17324d',5);
line([[-2,-17],[-17,8+Math.sin(phase)*8]],'#17324d',6);
line([[-2,-17],[18,8-Math.sin(phase)*8]],'#17324d',6);
line([[-17,8+Math.sin(phase)*8],[-25,8+Math.sin(phase)*8]],'#17324d',4);
line([[18,8-Math.sin(phase)*8],[27,8-Math.sin(phase)*8]],'#17324d',4);
ctx.restore();
}
function draw(now){
let dt=Math.min((now-last)/1000,.05);last=now;if(run)t+=dt;
ctx.clearRect(0,0,W,H);
const sky=ctx.createLinearGradient(0,0,0,H*.7);sky.addColorStop(0,'#8dd9e3');sky.addColorStop(1,'#d8f0d2');ctx.fillStyle=sky;ctx.fillRect(0,0,W,H);
const sunX=W*.77,sunY=H*.2,r=Math.min(W,H)*.1;
const glow=ctx.createRadialGradient(sunX,sunY,2,sunX,sunY,r*2.2);glow.addColorStop(0,'rgba(255,246,183,.9)');glow.addColorStop(1,'rgba(255,246,183,0)');ctx.fillStyle=glow;ctx.fillRect(0,0,W,H*.65);
ctx.fillStyle='#fff1ae';ctx.beginPath();ctx.arc(sunX,sunY,r,0,7);ctx.fill();
const ocean=H*.53;ctx.fillStyle='#68c7cc';ctx.fillRect(0,ocean,W,H*.18);
for(let i=0;i<5;i++){let yy=ocean+18+i*23;for(let j=-1;j<7;j++){let xx=j*190+(i%2)*80-(t*18%(190));line([[xx,yy],[xx+45,yy-4],[xx+90,yy]],'rgba(255,255,255,.55)',2)}}
ctx.fillStyle='#f6d69a';ctx.fillRect(0,H*.68,W,H*.32);
ctx.fillStyle='rgba(255,255,255,.75)';ctx.fillRect(0,ocean-4,W,7);
for(let i=0;i<12;i++){let xx=(i*137+t*9)% (W+100)-50, yy=H*.73+(i%4)*32;line([[xx,yy],[xx+28,yy-2],[xx+52,yy]],'rgba(255,247,219,.75)',2)}
const ground=H*.78, runnerX=((t*95)%(W+180))-90, phase=t*9;
for(let i=0;i<6;i++){let fx=runnerX-80-i*22,fy=ground+8+(i%2)*7;ctx.fillStyle='rgba(173,112,70,.25)';ctx.beginPath();ctx.ellipse(fx,fy,5,2.5,0,0,7);ctx.fill()}
drawRunner(runnerX,ground,Math.max(1,W/850),phase);
if(hello>0){ctx.fillStyle=`rgba(255,255,255,${hello})`;ctx.font='700 18px system-ui';ctx.fillText('hello!',runnerX+25,ground-75);hello-=.015}
requestAnimationFrame(draw);
}
toggle.onclick=()=>{run=!run;toggle.textContent=run?'Pause run':'Resume run';if(run)hello=1}
addEventListener('keydown',e=>{if(e.code==='Space'){e.preventDefault();toggle.click()}});
requestAnimationFrame(draw);
</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 Morgan Higdon. 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.