Hello world dinosaur theme where theres hundreds of dinosaurs running around
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Hello World — Dino Run</title>
<style>
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#f5d99b;font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#243b34}
#scene{position:relative;width:100%;height:100%;isolation:isolate}
canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.panel{position:absolute;z-index:2;top:clamp(20px,5vw,58px);left:clamp(20px,7vw,100px);pointer-events:none;text-shadow:0 2px 0 rgba(255,239,184,.65)}
.eyebrow{font-size:clamp(.7rem,1.4vw,1rem);font-weight:800;letter-spacing:.24em;text-transform:uppercase;color:#b45036}
h1{margin:.12em 0 0;font-size:clamp(3rem,9vw,8rem);line-height:.88;letter-spacing:-.08em;color:#284d43}
.sub{margin:1rem 0 0;font-size:clamp(.9rem,1.7vw,1.15rem);font-weight:650;color:#416258}
button{position:absolute;z-index:3;right:clamp(18px,4vw,55px);top:clamp(18px,4vw,44px);border:2px solid #284d43;background:#f7e7b7;color:#284d43;border-radius:999px;padding:.7rem 1.05rem;font:inherit;font-weight:800;cursor:pointer;box-shadow:0 4px 0 #c58b58}
button:hover,button:focus-visible{background:#fff3ce;outline:3px solid #fff3ce;outline-offset:3px}
button:active{transform:translateY(3px);box-shadow:0 1px 0 #c58b58}
.counter{position:absolute;z-index:2;right:clamp(20px,4vw,55px);bottom:clamp(18px,4vw,42px);font-size:.82rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#fff3ce;background:#284d43cc;padding:.7rem 1rem;border-radius:999px}
</style>
</head>
<body>
<div id="scene">
<canvas id="world" aria-label="A landscape full of colorful running dinosaurs"></canvas>
<div class="panel">
<div class="eyebrow">a tiny prehistoric greeting</div>
<h1>Hello,<br>world!</h1>
<div class="sub">Hope your day is roaring along nicely.</div>
</div>
<button id="pause" type="button" aria-pressed="false">Pause parade</button>
<div class="counter"><span id="count">240</span> dinosaurs on the move</div>
</div>
<script>
const canvas=document.getElementById("world"),ctx=canvas.getContext("2d"), pause=document.getElementById("pause"), count=document.getElementById("count");
let W=0,H=0,dpr=1,paused=false,last=0;
const N=240, dinos=[], colors=["#4d8c66","#679b55","#be704d","#d28d45","#477f7c","#8d6c9d","#6d9149"];
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);
if(!dinos.length) for(let i=0;i<N;i++) dinos.push({
x:Math.random()*W,y:H*.56+Math.random()*H*.36,
s:.48+Math.random()*1.05, speed:25+Math.random()*70,
c:colors[i%colors.length], phase:Math.random()*7, flip:Math.random()>.88
});
}
addEventListener("resize",resize); resize();
function path(points){ctx.beginPath();ctx.moveTo(points[0][0],points[0][1]);for(let i=1;i<points.length;i++)ctx.lineTo(points[i][0],points[i][1]);ctx.closePath();ctx.fill()}
function dino(d,t){
const k=d.s, bob=Math.sin(t*10+d.phase)*1.4*k, x=d.x, y=d.y+bob;
ctx.save();ctx.translate(x,y);if(d.flip)ctx.scale(-1,1);ctx.scale(k,k);
ctx.globalAlpha=.16;ctx.fillStyle="#604a39";ctx.beginPath();ctx.ellipse(2,20,25,5,0,0,7);ctx.fill();ctx.globalAlpha=1;
ctx.fillStyle=d.c;ctx.strokeStyle="#294d42";ctx.lineWidth=1.5;
path([[-13,2],[-37,-7],[-57,-19],[-53,-11],[-32,2],[-17,10]]);
ctx.beginPath();ctx.ellipse(-2,1,23,13,-.08,0,7);ctx.fill();ctx.stroke();
path([[10,-6],[15,-31],[24,-44],[31,-42],[26,-31],[22,-10]]);
ctx.stroke();
ctx.beginPath();ctx.ellipse(31,-44,11,7,-.08,0,7);ctx.fill();ctx.stroke();
ctx.fillStyle="#f5d99b";ctx.beginPath();ctx.ellipse(36,-43,5,2,0,0,7);ctx.fill();
ctx.fillStyle="#294d42";ctx.beginPath();ctx.arc(34,-47,1.7,0,7);ctx.fill();
ctx.strokeStyle="#294d42";ctx.lineWidth=2.2;ctx.lineCap="round";
const a=Math.sin(t*13+d.phase),b=Math.sin(t*13+d.phase+Math.PI);
[[-10,10, a*5,18], [5,10,b*5,18]].forEach(q=>{ctx.beginPath();ctx.moveTo(q[0],q[1]);ctx.lineTo(q[0]+q[2],q[3]);ctx.lineTo(q[0]+q[2]+5,q[3]);ctx.stroke()});
ctx.strokeStyle="#f0c36e";ctx.lineWidth=1;ctx.beginPath();ctx.moveTo(18,-22);ctx.lineTo(27,-22);ctx.stroke();
ctx.restore();
}
function background(t){
let g=ctx.createLinearGradient(0,0,0,H);g.addColorStop(0,"#f7d991");g.addColorStop(.55,"#eabf75");g.addColorStop(1,"#c47a50");ctx.fillStyle=g;ctx.fillRect(0,0,W,H);
ctx.fillStyle="#fff0b0";ctx.beginPath();ctx.arc(W*.78,H*.2,Math.min(W,H)*.09,0,7);ctx.fill();
ctx.fillStyle="#b87558";ctx.beginPath();ctx.moveTo(0,H*.54);ctx.lineTo(W*.16,H*.31);ctx.lineTo(W*.29,H*.53);ctx.lineTo(W*.43,H*.34);ctx.lineTo(W*.61,H*.55);ctx.lineTo(W*.78,H*.3);ctx.lineTo(W,H*.52);ctx.lineTo(W,H);ctx.lineTo(0,H);ctx.fill();
ctx.fillStyle="#7c7954";ctx.beginPath();ctx.moveTo(0,H*.66);ctx.quadraticCurveTo(W*.25,H*.54,W*.48,H*.67);ctx.quadraticCurveTo(W*.75,H*.53,W,H*.65);ctx.lineTo(W,H);ctx.lineTo(0,H);ctx.fill();
ctx.fillStyle="#53684d";ctx.fillRect(0,H*.79,W,H*.21);
ctx.fillStyle="rgba(244,210,133,.7)";for(let i=0;i<20;i++){let x=(i*97+20)%W,y=H*.8+(i%5)*18;ctx.fillRect(x,y,2,12)}
}
function frame(ms){
const t=ms/1000, dt=Math.min(.04,(ms-last)/1000||0);last=ms;
if(!paused)dinos.forEach(d=>{d.x+=d.speed*dt; if(d.x>W+80)d.x=-80});
background(t);
const sorted=[...dinos].sort((a,b)=>a.y-b.y);
sorted.forEach(d=>dino(d,t));
if(!paused) requestAnimationFrame(frame);
}
pause.onclick=()=>{paused=!paused;pause.textContent=paused?"Resume parade":"Pause parade";pause.setAttribute("aria-pressed",paused);if(!paused){last=performance.now();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 Ally Mack. 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.