New parallax site

From nirholas/scroll-zoom-thing · View interactive version

New parallax site is an AI agent skill from the GitHub repository nirholas/scroll-zoom-thing. Scaffold a new MkDocs Material site with the CSS 3D perspective parallax hero from the scroll-zoom-thing repo, using its new-site.sh script and templates. Use when asked for a cinematic docs or landing site with layered parallax art.

How to use this skill

Skill file

Scaffold a parallax hero site

The nirholas/scroll-zoom-thing repo is a working MkDocs Material site whose home page uses a pure-CSS parallax: perspective on the scroll container, each layer pushed back with translateZ and scaled to compensate. No JavaScript and no scroll listeners.

Steps

  1. Clone and install (Python with pip):

```bash

git clone https://github.com/nirholas/scroll-zoom-thing

cd scroll-zoom-thing

pip install -r requirements.txt # mkdocs, mkdocs-material, pymdown-extensions, pygments

```

  1. Create a site as a sibling directory with scripts/new-site.sh <project-name> <template>. Templates: minimal (bare hero), marketing-hero (hero, pillars, intro cards), product-docs (hero plus deep nav, no pillars). The script refuses to overwrite an existing destination and prompts for site name, description, URL, repo, hero headline and subhead, CTA labels and links, and brand colors. To skip prompts, export the variables it reads first: SITE_NAME, SITE_DESCRIPTION, SITE_URL, REPO_URL, REPO_NAME, HERO_HEADLINE, HERO_SUBHEAD, PRIMARY_CTA_LABEL, PRIMARY_CTA_HREF, SECONDARY_CTA_LABEL, SECONDARY_CTA_HREF, PRIMARY_COLOR, ACCENT_COLOR.

```bash

HERO_HEADLINE="Ship faster" ./scripts/new-site.sh my-app minimal

```

  1. Build and preview from the new project:

```bash

cd ../my-app

mkdocs build # static site

mkdocs serve # live preview

```

Where things live

Swapping in your own art

Put replacement AVIF files in src/assets/hero/, update the filenames in overrides/home.html, then mkdocs build. Convert PNG sources with an AVIF encoder you have installed (for example magick input.png -quality 70 layer@4x.avif); check with command -v first and do not overwrite existing files without asking.

Keep the CSS approach as is: do not switch to animation-timeline: scroll(), keep the .mdx-parallax__blend div as the last layer before .mdx-hero, and keep contain: strict on the first group. Always run mkdocs build and confirm it succeeds before reporting done.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.