A page that says hello world with the sun rising over mountains
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hello World Sunrise</title>
<style>
:root {
--ink: #fff7df;
--soft: rgba(255,247,223,.78);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
min-height: 100vh;
overflow: hidden;
display: grid;
place-items: center;
color: var(--ink);
font-family: ui-rounded, "Trebuchet MS", system-ui, sans-serif;
background: #172f59;
}
.scene {
position: relative;
width: 100vw;
height: 100vh;
min-height: 480px;
overflow: hidden;
isolation: isolate;
background:
linear-gradient(to bottom,
#172f59 0%,
#3c6382 38%,
#ef9a6c 67%,
#f8c675 100%);
animation: sky 12s ease-in-out infinite alternate;
}
.scene::before {
content: "";
position: absolute;
inset: 0;
z-index: -1;
opacity: .2;
background: radial-gradient(ellipse at 50% 78%, #fff5af 0 5%, transparent 27%);
}
.sun {
position: absolute;
left: 50%;
top: 63%;
width: clamp(90px, 14vw, 170px);
aspect-ratio: 1;
border-radius: 50%;
transform: translate(-50%, -50%);
background: #fff2a5;
box-shadow: 0 0 35px 12px rgba(255,224,125,.56),
0 0 110px 38px rgba(255,190,95,.26);
animation: rise 12s cubic-bezier(.35,.01,.5,1) infinite alternate;
}
.sun::after {
content: "";
position: absolute;
inset: -28%;
border-radius: 50%;
border: 1px solid rgba(255,239,167,.35);
animation: pulse 4s ease-in-out infinite;
}
.mountains {
position: absolute;
inset: auto 0 0;
width: 100%;
height: 58%;
}
.far { fill: #405d73; opacity: .72; }
.mid { fill: #263e5d; }
.near { fill: #142b49; }
.snow { fill: #d9cba9; opacity: .7; }
.mist {
position: absolute;
bottom: 18%;
left: -10%;
width: 120%;
height: 16%;
opacity: .18;
background: #ffe8b0;
filter: blur(20px);
border-radius: 50%;
animation: drift 15s ease-in-out infinite alternate;
}
.content {
position: absolute;
inset: 0;
display: grid;
place-content: center;
text-align: center;
padding: 2rem;
transform: translateY(-5vh);
}
h1 {
margin: 0;
font-size: clamp(3.5rem, 12vw, 9rem);
line-height: .9;
letter-spacing: -.07em;
text-shadow: 0 4px 20px rgba(25,35,60,.25);
}
p {
margin: 1.5rem 0 0;
color: var(--soft);
font-size: clamp(.8rem, 1.5vw, 1rem);
letter-spacing: .28em;
text-transform: uppercase;
}
@keyframes rise {
from { top: 69%; }
to { top: 38%; }
}
@keyframes sky {
from { filter: saturate(.85) brightness(.86); }
to { filter: saturate(1.1) brightness(1.05); }
}
@keyframes pulse {
50% { transform: scale(1.12); opacity: .45; }
}
@keyframes drift {
to { transform: translateX(7%); }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation-duration: .001ms !important; }
}
</style>
</head>
<body>
<main class="scene" aria-label="A sunrise over layered mountains">
<div class="sun" aria-hidden="true"></div>
<div class="mist" aria-hidden="true"></div>
<svg class="mountains" viewBox="0 0 1200 600" preserveAspectRatio="none" aria-hidden="true">
<path class="far" d="M0 440L150 270 235 365 390 145 555 350 700 205 850 365 1010 175 1200 390V600H0Z"/>
<path class="snow" d="M390 145l-62 100 62-34 42 48 36 91 87 0-165-205zM1010 175l-64 90 63-39 45 55 64 109h82L1010 175z"/>
<path class="mid" d="M0 520L200 330 330 445 510 255 710 465 875 290 1050 450 1200 325V600H0Z"/>
<path class="snow" d="M510 255l-70 103 67-45 51 57 53 96h99L510 255zM875 290l-45 79 45-38 48 48 55 81h72L875 290z"/>
<path class="near" d="M0 600V475l130-60 108 46 119-91 137 94 112-54 126 64 125-84 127 69 116-42v183Z"/>
</svg>
<section class="content">
<h1>Hello<br>World</h1>
<p>A new day begins</p>
</section>
</main>
<script>
document.querySelector('.scene').addEventListener('click', () => {
document.querySelector('.sun').animate(
[{ transform: 'translate(-50%, -50%) scale(1)' },
{ transform: 'translate(-50%, -50%) scale(1.12)' },
{ transform: 'translate(-50%, -50%) scale(1)' }],
{ duration: 700, easing: 'ease-out' }
);
});
</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 Clayton Cotton. 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.