Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

Scenario motion loops

Helps you get seamless looping motion graphics for video in their own brand colors.

In detail

Use when someone wants seamless looping motion graphics for video in their own brand colors: animated backgrounds behind titles, filler for the dead seconds between AI shots, bumpers, transitions or shape animations, built as code and rendered to MP4, optionally with their mascot, product or character from Scenario composited over the loop. Keywords: seamless loop, motion background, canvas animation, motion graphics, loop seam, motion blur, H.264 export, alpha composite.

Safety check

  • Script runs other programs or code: scripts/render-loop.mjs line 10

An automated scan lowers risk but cannot promise zero risk. How we check skills

Preview

The first lines of SKILL.md
---
name: scenario-motion-loops
description: "Use when someone wants seamless looping motion graphics for video in their own brand colors: animated backgrounds behind titles, filler for the dead seconds between AI shots, bumpers, transitions or shape animations, built as code and rendered to MP4, optionally with their mascot, product or character from Scenario composited over the loop. Keywords: seamless loop, motion background, canvas animation, motion graphics, loop seam, motion blur, H.264 export, alpha composite."
license: MIT
---

# Scenario Motion Loops

## Overview

A loop is a pure function of time, drawn with Canvas 2D in one HTML file. Nothing is generated, so
nothing warps or flickers, one color change rebrands it, and it renders at any size.

- `draw(ctx, w, h, t, P)` paints the frame at `t` seconds. Every period divides the 12 s loop, so
  the frame at 12 s is the frame at 0 s.
- [scripts/loop-template.html](scripts/loop-template.html) holds the helpers (`M.*`), the palette
  (`P`) and `tile(...)` registration. Tiles from the Motion Loops exploration on scenario.com (80
  loops, each with its code) run in it unchanged.
- [scripts/render-loop.mjs](scripts/render-loop.mjs) checks the page, renders stills or the MP4, and
  checks the encoded file.
- Scenario makes only the subject: a mascot, product or character as a cut-out PNG with alpha. The
  page draws it on the loop's clock, so the composite keeps the motion blur and still loops. The
  loop itself costs nothing.

Needs Node 18 or newer, ffmpeg 5.1 or newer with ffprobe, and Playwright where the script runs
(`npm install playwright`, then `npx playwright install chromium`, or `--channel chrome` with Google
Chrome installed). Connection, model discovery, uploads and pricing: see the `scenario` skill. The
cut-out: `scenario-image-editing`. The video shot: `scenario-video`, and its background removal:
`scenario-video-editing`. If a sibling skill named here is missing from your available skills, load
it with `skill_get` (Scenario MCP) or ask the user to install it
(https://github.com/scenario-labs/skills#install); unattended, proceed from tool schemas and flag
the gap.

## Quick reference

```bash
cp scripts/loop-template.html loop.html            # one loop per file: settings, draw(), overlay
# open loop.html in a browser to preview; ?t=3 freezes it, ?tone=accent or ?tone=light switches tone
node scripts/render-loop.mjs loop.html --check     # determinism and loop seam, no video
node scripts/render-loop.mjs loop.html --stills look --at 0,3,6,9               # stills to look at
...

From scenario-labs's repository, MIT licence.

Related skills

  • Checked

    Web design builder

    Builds polished web pages, dashboards and prototypes in HTML, CSS and React, then checks them in a browser.

    by ConardLi 16k
    7/101 credit
  • Checked

    React Native accessibility

    Writes React Native screens that pass AMA accessibility checks, so every user can get through your app.

    by react-native-ama 296
    8/101 credit
  • Checked

    Web animation builder

    Builds web animations by deciding purpose, curve, duration and exit in order, so motion feels right.

    by emilkowalski 62k
    8/101 credit
  • Checked

    Janky animation fixer

    Finds why a web animation drops frames and picks properties that stay smooth, so motion runs without stutter.

    by emilkowalski 62k
    7/101 credit
  • Checked

    Apple style fluid motion

    Builds springy, interruptible gestures and sheets for the web the Apple way, so your interface feels native.

    by emilkowalski 62k
    8/101 credit
  • Checked

    Enter and exit animations

    Decides what should animate and builds enters, exits, icon swaps and drag with exact timing and easing values.

    by jakubkrehel 13k
    7/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added