Hero Kit: live hero sections, one tag
Every live heroes.
One tag.
Each hero is a whole composed page opening: subject, type, nav and button, all reacting. Keep scrolling. Every one below is running for real, and you can touch it.
Scroll is the camera.
One video, frame-accurate to your scrollbar, with its own words at each stage.
Four slots.
Swap any of them.
A hero is a background, a headline, a nav and a layout. Change one and the rest stay. This is the real component, not a recording.
How it works
No build step and no framework. It is one web component, plus a React wrapper if you want it.
-
Pick a hero
Hover the gallery and each card runs live. Filter by what you can supply. Some need nothing from you at all.
-
Make it yours
Change the words, colours and slots in the customizer. Or run a recipe on your own photo or video and get web-ready assets back.
{ "background": { "type": "poke" }, "headline": { "type": "scramble", "text": ["Your", "words"] }, "nav": { "type": "pill", "brand": "YOURS" }, "layout": { "type": "bottom-left" } } -
Paste one tag
The poster paints at once, the hero starts when it comes into view, and it pauses when it leaves. Phones get touch and an idle loop. Reduced motion gets a designed still.
<hero-kit preset="/hero-kit/presets/poke.json"></hero-kit> <script type="module" src="/hero-kit/src/hero-kit.js"></script>
Or tell your agent.
Hero Kit ships a local MCP server with four tools, so nobody has to copy code by hand. It runs on your machine over stdio.
hero_listLists the catalogue, read live from the presets folder, with what each hero needs and whether it is ready to add.
no argumentshero_previewStarts a read-only local server and returns a URL to open, the hero's config and its poster image.
herohero_addCopies the runtime, the one background it needs, the preset and web-ready assets into your project, and returns the exact snippet. Writes nothing if an existing file differs, unless you say overwrite.
hero, target, dir?, public_path?, from?, overwrite?hero_makeRuns a recipe on your own files. Call it with no recipe to get every recipe with its inputs and options.
recipe?, inputs?, out?, options?What you say
Add the poke hero to this project,
using ./photo.png and ./depth.png
for the head. Headline: "Pull me".What it calls
hero_make {
"recipe": "poke",
"inputs": ["/site/photo.png"],
"out": "/site/.hero/poke",
"options": { "depth": "/site/depth.png", "preset": "poke" }
}
hero_add {
"hero": "poke",
"target": "/site",
"from": "/site/.hero/poke"
}Every recipe runs on your machine except still, which spends credits on your own Magnific account and only when you ask. Keys come from your environment, never from arguments. Download the kit to get the server, the recipes and every hero.
Make your own.
Each recipe turns your files into the exact assets a hero loads, and writes a preset that points at them. Bring a photo. Get a hero.
What is Hero Kit?
Hero Kit is a free, MIT-licensed kit by ZirkoMirko with 13 live hero sections, such as Ember (a marble bust that breaks into particles around the cursor) and X-ray (a liquid lens that reveals a second image). Each hero is a <hero-kit> web component plus a JSON preset with four slots you can swap: background, headline, nav and layout. It needs no build step or framework; a React wrapper is included. The poster paints at once, the hero starts when it scrolls into view and pauses when it leaves, phones get touch and an idle loop, and reduced motion gets a still. Python recipes rebuild a hero from your own photo or video, and a local MCP server with hero_list, hero_preview, hero_add and hero_make lets an agent add one for you.
How it works
- Scroll the page or open the gallery. Every hero runs live, so move your cursor through it and pick one.
- Change the words, colours and slots in the customizer, then copy the web component or React snippet.
- Download the kit, serve its hero-kit folder at /hero-kit/ and paste the snippet. Or ask your agent to call hero_add.
FAQ
- Is Hero Kit free?
- Yes. It is free and MIT licensed.
- Does it need React or a build step?
- No. It is one native web component loaded as an ES module. A small React wrapper is included if you use React.
- Can I use my own images?
- Yes. Each hero has a recipe that turns your photo, depth map or video into the assets it loads and writes a preset that points at them. They run on your machine; only the optional still recipe spends credits on your own Magnific account.
- What happens on phones and with reduced motion?
- Phones get touch input and an idle loop. With reduced motion on, each hero shows a designed still instead of animating.
- How does an agent add a hero?
- The download includes a local MCP server with hero_list, hero_preview, hero_add and hero_make. hero_add copies the runtime, the preset and the assets into your project and returns the snippet to paste.