<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Hello World Mariachi</title>
<style>
* { box-sizing: border-box; }
body {
margin: 0;
min-height: 100vh;
display: grid;
place-items: center;
overflow: hidden;
font-family: Arial, Helvetica, sans-serif;
background: linear-gradient(135deg, #fff3c4, #ff9f68);
color: #2b1b12;
}
.card {
width: min(92vw, 760px);
text-align: center;
padding: 48px 28px;
border-radius: 28px;
background: rgba(255,255,255,.86);
box-shadow: 0 24px 70px rgba(0,0,0,.18);
border: 4px solid #d62828;
}
h1 {
margin: 0 0 14px;
font-size: clamp(3rem, 10vw, 6rem);
letter-spacing: -3px;
}
p {
font-size: 1.15rem;
margin-bottom: 28px;
}
button {
border: 0;
border-radius: 999px;
padding: 16px 28px;
font-size: 1.05rem;
font-weight: 800;
cursor: pointer;
color: white;
background: #d62828;
box-shadow: 0 8px 0 #8f1717;
transition: transform .15s ease, box-shadow .15s ease;
}
button:hover { transform: translateY(-2px); }
button:active {
transform: translateY(5px);
box-shadow: 0 3px 0 #8f1717;
}
.band {
height: 0;
opacity: 0;
margin-top: 0;
display: flex;
justify-content: center;
align-items: end;
gap: 18px;
transition: all .45s ease;
pointer-events: none;
}
.band.show {
height: 145px;
opacity: 1;
margin-top: 32px;
}
.musician {
font-size: clamp(3rem, 8vw, 5rem);
transform-origin: bottom center;
}
.band.show .musician {
animation: dance .55s ease-in-out infinite alternate;
}
.band.show .musician:nth-child(2) { animation-delay: .12s; }
.band.show .musician:nth-child(3) { animation-delay: .24s; }
.band.show .musician:nth-child(4) { animation-delay: .36s; }
.notes {
position: fixed;
inset: 0;
pointer-events: none;
}
.note {
position: absolute;
bottom: -40px;
font-size: 2rem;
animation: floatUp 3s linear forwards;
}
@keyframes dance {
from { transform: rotate(-8deg) translateY(0) scale(1); }
to { transform: rotate(8deg) translateY(-13px) scale(1.05); }
}
@keyframes floatUp {
0% { transform: translateY(0) rotate(0deg); opacity: 0; }
15% { opacity: 1; }
100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}
.fiesta {
animation: fiestaBg 1s ease;
}
@keyframes fiestaBg {
0%, 100% { filter: hue-rotate(0deg); }
50% { filter: hue-rotate(80deg); }
}
</style>
</head>
<body>
<main class="card" id="card">
<h1>Hello World!</h1>
<p>Click the button to bring in the mariachi band. 🎉</p>
<button id="mariachiBtn">Bring in the Mariachi! 🎺</button>
<div class="band" id="band" aria-label="Animated mariachi band">
<div class="musician">🤠🎺</div>
<div class="musician">🤠🎻</div>
<div class="musician">🤠🎸</div>
<div class="musician">🤠🪇</div>
</div>
</main>
<div class="notes" id="notes"></div>
<script>
const button = document.getElementById("mariachiBtn");
const band = document.getElementById("band");
const notes = document.getElementById("notes");
const card = document.getElementById("card");
let playing = false;
let noteTimer;
function makeNote() {
const note = document.createElement("span");
note.className = "note";
note.textContent = ["♪", "♫", "🎵", "🎶"][Math.floor(Math.random() * 4)];
note.style.left = Math.random() * 95 + "vw";
note.style.animationDuration = (2 + Math.random() * 2) + "s";
notes.appendChild(note);
setTimeout(() => note.remove(), 4200);
}
button.addEventListener("click", () => {
playing = !playing;
band.classList.toggle("show", playing);
card.classList.remove("fiesta");
void card.offsetWidth;
card.classList.add("fiesta");
if (playing) {
button.textContent = "Stop the Mariachi 🎺";
for (let i = 0; i < 10; i++) setTimeout(makeNote, i * 120);
noteTimer = setInterval(makeNote, 350);
} else {
button.textContent = "Bring in the Mariachi! 🎺";
clearInterval(noteTimer);
}
});
</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 Ben Candela. 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.