I'll create an interactive Marauder's Map from the Harry Potter universe — a magical parchment that reveals Hogwarts and shows people (as named footprint dots) moving around when you speak the incantation.
Let me explore the project first.
This is Tailwind v4. Now I'll build an interactive Marauder's Map. My plan:
- Add authentic old-style fonts + title in
index.html
- Create map data (Hogwarts rooms, corridors, characters with walking routes) in
src/data/map.ts
- Build the animated map component with moving footprints & named dots in
src/components/MaraudersMap.tsx
- Wire up the incantation reveal flow in
src/App.tsx
Let me start with the fonts and the data file.
Now the map data — Hogwarts nodes, corridors, rooms, and character walking routes:
Now the animated map component with moving footprints and named dots:
Now the main App with the incantation reveal flow, parchment styling, and character panel:
Now the parchment styling and animations in CSS:
Now let me build to confirm everything works:
The build succeeded. I've created an interactive Marauder's Map from the Harry Potter universe — a faithful "what if it were real" magical web artifact.
What I built
The concept: The legendary Marauder's Map, brought to life as a living, breathing web page that behaves exactly like the enchanted parchment from the books.
How it works:
- 🪄 The parchment starts blank — showing only Mr Moony's cheeky compliments. Nothing is revealed until you prove yourself worthy.
- ✍️ Speak the incantation — type "I solemnly swear that I am up to no good" and the map animates into view: corridors, towers, and named rooms across Hogwarts fade in with an ink-like reveal. Wrong words? The parchment shakes you off.
- 👣 Live moving footprints — 10 characters (Harry, Ron, Hermione, Dumbledore, Snape, McGonagall, Filch, Draco, Ginny, and a certain Peter Pettigrew rendered in ominous red) each patrol their own routes through the castle in real time, leaving trails of fading footprints behind their labelled dots — just like the real map.
- 🔍 Tap any dot (or a name in the "Currently Roaming" roll call) to reveal a short in-universe bio.
- 🧹 "Mischief managed" wipes the map clean again.
The craft:
- Authentic aged-parchment styling with layered radial gradients, vignette, fold lines, and a rough SVG displacement filter to give the ink a hand-drawn wobble.
- Period-correct typography (Pirata One for the title, IM Fell English for the flowing ink script).
- Smooth 60fps animation driven by
requestAnimationFrame with direct DOM transforms (no re-render churn), with real path-following geometry so footprints always face the direction of travel and alternate left/right feet.
Everything builds cleanly into a single served file. Solemnly sworn — and ready to explore.
Files built: index.html, src/data/map.ts, src/components/MaraudersMap.tsx, src/App.tsx, src/index.css