← Demos
Web Pages · Hello World

Hello World

A page that says hello world with a frog hopping around lillypads

by Charlie Heiskell Sep 1, 2026 3 views 5.6 KB
Sandbox · hello-world-9 · no access to your account
View source — the whole page is this one file
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hello World Pond</title>
<style>
  :root {
    --ink: #123a43;
    --water-top: #8de0d0;
    --water-bottom: #3d9f9c;
    --pad: #2f9270;
    --pad-light: #64bd82;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; min-height: 100%; }
  body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    background: #d9f5df;
  }
  main {
    width: min(100%, 980px);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    background:
      radial-gradient(circle at 18% 12%, #fff8bf 0 3px, transparent 4px),
      radial-gradient(circle at 78% 19%, #fff8bf 0 2px, transparent 3px),
      linear-gradient(180deg, #f7f4bf 0 28%, var(--water-top) 28%, var(--water-bottom) 100%);
  }
  header {
    position: absolute;
    z-index: 5;
    top: clamp(28px, 7vw, 64px);
    text-align: center;
    padding: 0 18px;
  }
  h1 {
    margin: 0;
    font-size: clamp(3.2rem, 10vw, 7.8rem);
    line-height: .85;
    letter-spacing: -.07em;
    color: #164b52;
    text-shadow: 3px 4px 0 #f8edaa;
  }
  header p {
    margin: 18px 0 0;
    font: 700 .78rem/1.2 system-ui, sans-serif;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #31706b;
  }
  .pond {
    position: absolute;
    inset: 28% 0 0;
    overflow: hidden;
  }
  .pond:before, .pond:after {
    content: "";
    position: absolute;
    width: 150%;
    height: 30px;
    left: -25%;
    border-top: 2px solid rgba(255,255,255,.28);
    border-radius: 50%;
    animation: drift 9s linear infinite;
  }
  .pond:before { top: 22%; }
  .pond:after { top: 68%; animation-delay: -4s; opacity: .55; }
  .pad {
    position: absolute;
    width: clamp(72px, 13vw, 120px);
    aspect-ratio: 1.15;
    border-radius: 50%;
    background: conic-gradient(from 20deg, var(--pad-light), var(--pad) 35%, #287c62 75%, var(--pad-light));
    box-shadow: inset -7px -8px 0 rgba(13,91,73,.16), 0 8px 9px rgba(16,89,89,.15);
  }
  .pad:after {
    content: "";
    position: absolute;
    inset: 0;
    background: conic-gradient(from 338deg at 50% 50%, transparent 0 13%, #3d9f9c 14% 20%, transparent 21%);
    border-radius: inherit;
  }
  .pad i {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #f5dd7b;
    top: 22%;
    left: 27%;
    box-shadow: 29px 16px 0 #ef8a89;
  }
  .one { left: 8%; top: 16%; transform: rotate(-14deg); }
  .two { left: 39%; top: 35%; transform: rotate(20deg); }
  .three { right: 7%; top: 12%; transform: rotate(-8deg); }
  .four { right: 22%; bottom: 10%; transform: rotate(14deg); }
  .five { left: 15%; bottom: 5%; transform: rotate(-20deg); }
  .frog {
    position: absolute;
    z-index: 3;
    left: 7%;
    top: 18%;
    width: 70px;
    height: 70px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: clamp(3rem, 7vw, 4.7rem);
    line-height: 1;
    filter: drop-shadow(0 8px 3px rgba(16,76,74,.24));
    animation: hop 9s cubic-bezier(.45,.05,.55,.95) infinite;
  }
  .frog:focus-visible {
    outline: 4px solid #fff8bf;
    outline-offset: 8px;
    border-radius: 50%;
  }
  .frog.hop-now { animation: hop-now .85s ease-out; }
  .hint {
    position: absolute;
    z-index: 4;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 999px;
    background: rgba(19,86,87,.36);
    color: white;
    font: 600 .78rem system-ui, sans-serif;
    white-space: nowrap;
  }
  @keyframes hop {
    0%, 8% { transform: translate(0, 0) rotate(-7deg); }
    15% { transform: translate(23vw, -16vh) rotate(8deg) scaleY(.82); }
    21%, 29% { transform: translate(33vw, 9vh) rotate(-4deg); }
    38% { transform: translate(57vw, -13vh) rotate(8deg) scaleY(.82); }
    44%, 53% { transform: translate(67vw, 5vh) rotate(-6deg); }
    62% { transform: translate(48vw, 28vh) rotate(8deg) scaleY(.82); }
    69%, 77% { transform: translate(30vw, 36vh) rotate(-7deg); }
    87% { transform: translate(9vw, 27vh) rotate(6deg) scaleY(.82); }
    94%, 100% { transform: translate(0, 0) rotate(-7deg); }
  }
  @keyframes hop-now {
    0% { transform: translateY(0) scale(1); }
    45% { transform: translateY(-90px) scale(.8, 1.08) rotate(12deg); }
    100% { transform: translateY(0) scale(1); }
  }
  @keyframes drift { to { transform: translateX(12%); } }
  @media (max-width: 560px) {
    .one { left: 3%; }
    .three { right: 2%; }
    .five { left: 5%; }
    .hint { bottom: 16px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .frog, .pond:before, .pond:after { animation-play-state: paused; }
  }
</style>
</head>
<body>
<main>
  <header>
    <h1>Hello,<br>world!</h1>
    <p>A tiny greeting from the pond</p>
  </header>
  <section class="pond" aria-label="A pond with lily pads">
    <div class="pad one"><i></i></div>
    <div class="pad two"><i></i></div>
    <div class="pad three"><i></i></div>
    <div class="pad four"><i></i></div>
    <div class="pad five"><i></i></div>
    <button class="frog" aria-label="Make the frog hop">🐸</button>
    <div class="hint">Click the frog to say hello</div>
  </section>
</main>
<script>
  const frog = document.querySelector('.frog');
  frog.addEventListener('click', () => {
    frog.classList.remove('hop-now');
    void frog.offsetWidth;
    frog.classList.add('hop-now');
  });
  frog.addEventListener('animationend', () => frog.classList.remove('hop-now'));
</script>
</body>
</html>

Reaches out to

Nothing. This page is entirely self-contained and contacts no other website when it runs.

Licence

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 Charlie Heiskell. Licensed under the MIT License. Published on Globefin.

Provided as is, without warranty. Any external libraries it loads keep their own licences. Terms →

Sandbox

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.