---
name: website-scroll
description: "Record a top-to-bottom scroll of any web page as a short MP4, the way a reader scrolls it (a flick, a look, another flick) (plus a poster JPEG), with cookie banners, consent dialogs, newsletter popups and chat launchers out of the way, so the page shows as a clean scroll. Use when asked for a scroll video, a scrolling screen recording, a \"scroll of the site/page/landing\", a page walkthrough clip, a preview video of a URL, or a hover video for a link card; also for a tidy full-page still with the popups removed."
title: website-scroll
canonical_url: https://skilld.dev/gh/paralect/saas-skills/website-scroll
last_updated: 2026-11-18T14:45:38.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [scripts/package.json](https://skilld.dev/api/skills-raw/paralect/saas-skills/website-scroll/scripts/package.json), [scripts/page-tidy.js](https://skilld.dev/api/skills-raw/paralect/saas-skills/website-scroll/scripts/page-tidy.js), [scripts/scroll.mjs](https://skilld.dev/api/skills-raw/paralect/saas-skills/website-scroll/scripts/scroll.mjs).
>
> If the user asked to install this Skill, run `npx skilld install paralect/saas-skills/website-scroll`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/website-scroll`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/paralect/saas-skills/website-scroll) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/website-scroll`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/website-scroll --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/website-scroll --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Website scroll

Every file this skill uses ships in its own folder, next to this SKILL.md, and paths here are relative to that folder. It needs nothing from other skills or other folders, so don't go looking for them. Unless the user names another place, save everything it makes in `out/website-scroll/` under the current project.

Output: a **6–18 second MP4** of a web page scrolled from the top to the bottom the way a reader does it: a flick of about a screen that coasts to a stop, a moment to look, another flick (1440×900 by default, encoded 1280 wide), plus `<out>.jpg`, its first frame, for a poster. Nothing is faked: the real page in a real browser; only the consent dialogs, cookie bars, popups and chat bubbles are taken out.

## How it works

`scripts/scroll.mjs` opens the URL in headless Chrome (the user's own Chrome when there is one, otherwise Playwright's Chromium), waits for the network to settle, then:

1. **Tidies the page.** Hides ~150 known consent managers, cookie bars, chat launchers and promo bars by selector; clicks the accept/close button of any notice that names itself as one; then hides whatever fixed or sticky element still covers the page or sits along an edge and reads like a notice, a dialog that opened on its own, and the scrims behind them. Scroll locks (`overflow: hidden`, `position: fixed` on the body) are undone.
2. **Walks the page once** so lazy images and fonts below the fold load, then returns to the top.
3. **Takes the page's clock**, then captures frame by frame: scroll one step, advance the page's time by exactly one frame, screenshot. Scroll-triggered animations therefore play at the pace a reader would see, however long a screenshot takes, and the take re-renders the same way every time.
4. **Encodes** with ffmpeg (H.264, `+faststart`, plays everywhere).

The take rests at the top (1.2s), then scrolls in flicks: each one shoots off and coasts to a stop about 0.8 of a screen further down (a second or so), rests ~0.7s, and the next follows. Flick lengths and rests vary a little, from a seeded generator, so it reads as a hand on a trackpad and still records the same way every time; the last flick lands on the bottom, where the take rests 1.5s. A page longer than the time budget (18s) gets shorter rests, then brisker flicks, to fit; past 12,000 px it stops.

## Usage

```bash
node <this skill folder>/scripts/scroll.mjs --url https://example.com/pricing --out out/website-scroll/pricing
```

Writes `out/website-scroll/pricing.mp4` and `out/website-scroll/pricing.jpg`. Options:

| Option                | Default   | What it does                                                                                  |
| --------------------- | --------- | --------------------------------------------------------------------------------------------- |
| `--width`, `--height` | 1440, 900 | Viewport in CSS px; this is the video's aspect ratio. `--width 390 --height 844` for a phone. |
| `--scale`             | 1         | Device pixels per CSS px. 2 for crisp text at the cost of time.                               |
| `--fps`               | 30        | Frames per second.                                                                            |
| `--page`              | 0.8       | How far each flick goes, as a share of the viewport height. Less for dense pages (0.6).      |
| `--pause`             | 0.7       | Seconds resting between flicks. Longer for text-heavy pages (1), shorter for galleries (0.4). |
| `--hold`, `--tail`    | 1.2, 1.5  | Seconds resting at the top and at the bottom.                                                 |
| `--max`               | 18        | Longest video in seconds; a long page scrolls faster to fit.                                  |
| `--max-scroll`        | 12000     | Farthest to scroll, in px.                                                                    |
| `--out-width`         | 1280      | Width of the encoded MP4.                                                                     |
| `--dark`              | off       | Prefer the page's dark color scheme.                                                          |
| `--still`             | off       | One JPEG of the tidied page instead of a video, for a quick check.                            |
| `--keep-frames`       | off       | Leave the captured frames next to the output.                                                 |

Needs `ffmpeg` on PATH (`brew install ffmpeg`). Playwright installs into this skill's `scripts/` folder on the first run, with its Chromium if none is found; your own Chrome is used when you have one.

## Rules

1. **Check the still first when the site is unfamiliar** (`--still`). If a banner is still in the picture, add its selector to `NOISE_SELECTORS` in the script or a phrase to `NOISE_TEXT`; don't hand-edit frames.
2. **Public pages only, as a visitor sees them.** The recorder signs in to nothing and keeps no cookies; a page behind a login shows its login screen. For the running app behind sign-in, use the `video-demo` skill.
3. **One page per video.** A launch post with three links gets three recordings, one per link, named after the page (`out/website-scroll/<slug>.mp4`).
4. **Don't fight the page's own motion.** Marquees, hero videos and scroll animations are part of the page and play in the recording; only overlays are removed.
5. **Keep it short.** The defaults land most pages at 6–12 seconds. If a page is very long, let the time budget shorten the rests rather than raising `--max` far past 18s; a hover preview is not a tour.
