← Demos
Web Pages · Hello World

Puppies Hello World

by Brooke Lampkins Aug 31, 2026 7 views 5.2 KB
Sandbox · puppies-hello-world · 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 Puppies</title>
<style>
  :root {
    color-scheme: light;
    --ink: #26344a;
    --grass: #6fbe72;
    --grass-dark: #4f9d5a;
    --cream: #fff8e7;
  }

  * { box-sizing: border-box; }

  body {
    margin: 0;
    min-height: 100vh;
    overflow: hidden;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: linear-gradient(#9cddff 0 66%, var(--grass) 66% 100%);
  }

  main {
    position: relative;
    min-height: 100vh;
    isolation: isolate;
    overflow: hidden;
  }

  .sun {
    position: absolute;
    top: 8vh;
    right: 9vw;
    width: clamp(70px, 12vw, 130px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: #ffd86b;
    box-shadow: 0 0 0 18px #ffd86b22, 0 0 55px #fff4a8;
  }

  .cloud {
    position: absolute;
    color: #fff;
    font-size: clamp(3rem, 8vw, 7rem);
    opacity: .8;
    user-select: none;
  }

  .cloud.one { top: 9%; left: 8%; }
  .cloud.two { top: 24%; right: 28%; transform: scale(.65); opacity: .6; }

  header {
    position: relative;
    z-index: 2;
    padding: 12vh 1.25rem 0;
    text-align: center;
  }

  h1 {
    margin: 0;
    font-size: clamp(3.5rem, 12vw, 8rem);
    line-height: .95;
    letter-spacing: -.07em;
    color: var(--ink);
    text-shadow: 0 5px 0 #ffffffaa;
  }

  .subtitle {
    margin: 1rem auto 0;
    max-width: 34rem;
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 650;
    color: #375878;
  }

  button {
    margin-top: 1.4rem;
    border: 0;
    border-radius: 999px;
    padding: .75rem 1.25rem;
    color: #fff;
    background: #304b70;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 4px 0 #203552;
  }

  button:hover { background: #3d608d; }
  button:active { transform: translateY(3px); box-shadow: 0 1px 0 #203552; }
  button:focus-visible { outline: 4px solid #fff; outline-offset: 4px; }

  .yard {
    position: absolute;
    z-index: 1;
    inset: 66% 0 0;
    border-top: 7px solid #83d881;
    background:
      radial-gradient(ellipse at 20% 20%, #a7e68e 0 2px, transparent 3px),
      radial-gradient(ellipse at 80% 45%, #a7e68e 0 2px, transparent 3px),
      var(--grass);
    background-size: 90px 55px, 120px 70px, auto;
  }

  .puppy {
    position: absolute;
    z-index: 3;
    left: -12vw;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    user-select: none;
    animation: dash 9s linear infinite;
    will-change: transform;
    filter: drop-shadow(0 7px 2px #27643b55);
  }

  .p1 { top: 12%; animation-duration: 8s; animation-delay: -1s; }
  .p2 { top: 42%; animation-duration: 11s; animation-delay: -6s; font-size: clamp(2.7rem, 7vw, 5rem); }
  .p3 { top: 68%; animation-duration: 10s; animation-delay: -4s; }

  @keyframes dash {
    0%   { transform: translateX(-15vw) translateY(0) rotate(-5deg); }
    25%  { transform: translateX(28vw) translateY(-12px) rotate(4deg); }
    50%  { transform: translateX(58vw) translateY(0) rotate(-3deg); }
    75%  { transform: translateX(88vw) translateY(-10px) rotate(5deg); }
    100% { transform: translateX(125vw) translateY(0) rotate(-4deg); }
  }

  .paused .puppy { animation-play-state: paused; }

  .sparkle {
    position: absolute;
    z-index: 2;
    font-size: clamp(1.2rem, 3vw, 2rem);
    animation: twinkle 2s ease-in-out infinite alternate;
  }

  .s1 { left: 17%; top: 44%; }
  .s2 { right: 14%; top: 52%; animation-delay: .7s; }
  .s3 { left: 68%; top: 35%; animation-delay: 1.1s; }

  @keyframes twinkle {
    from { opacity: .35; transform: scale(.8) rotate(0); }
    to { opacity: 1; transform: scale(1.2) rotate(18deg); }
  }

  @media (prefers-reduced-motion: reduce) {
    .puppy, .sparkle { animation: none; }
  }
</style>
</head>
<body>
<main id="scene">
  <div class="sun" aria-hidden="true"></div>
  <div class="cloud one" aria-hidden="true">☁️</div>
  <div class="cloud two" aria-hidden="true">☁️</div>

  <header>
    <h1>Hello World!</h1>
    <p class="subtitle">A little hello from the puppy patrol 🐾</p>
    <button id="toggle" type="button" aria-pressed="false">Pause puppies</button>
  </header>

  <div class="yard" aria-hidden="true"></div>
  <span class="sparkle s1" aria-hidden="true">✦</span>
  <span class="sparkle s2" aria-hidden="true">✧</span>
  <span class="sparkle s3" aria-hidden="true">✦</span>
  <span class="puppy p1" aria-label="running puppy" role="img">🐕</span>
  <span class="puppy p2" aria-label="running puppy" role="img">🐶</span>
  <span class="puppy p3" aria-label="running puppy" role="img">🦮</span>
</main>

<script>
  const scene = document.getElementById("scene");
  const toggle = document.getElementById("toggle");

  toggle.addEventListener("click", () => {
    const paused = scene.classList.toggle("paused");
    toggle.textContent = paused ? "Let them zoom!" : "Pause puppies";
    toggle.setAttribute("aria-pressed", paused);
  });
</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 Brooke Lampkins. 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.