Skip to content

siegerts/skill-canvas-video / creating-canvas-video-animations

creating-canvas-video-animations

Verified

Creates animated video content using HTML5 Canvas and JavaScript. Generates self-contained HTML files with canvas-based animations that can be previewed in a browser and exported to MP4 using Puppeteer and FFmpeg. Use when the user wants to create animated videos, motion graphics, promotional clips, tutorial animations, or any visual content rendered frame-by-frame on canvas.

FileKindSize
ARCHITECTURE.mdmarkdown2.9 KB
ELEMENTS.mdmarkdown3.3 KB
EXPORT.mdmarkdown1.4 KB
HTML-TEMPLATE.mdmarkdown2.0 KB
PLATFORMS.mdmarkdown3.7 KB
SKILL.mdskill md5.0 KB
TIMELINE.mdmarkdown1.6 KB
scripts/export.jsscript3.5 KB

ELEMENTS.md

View on GitHub
# Common Visual Elements

## Contents
- Redrawing from image references
- Glow text (titles)
- Fade-in text (body)
- Glitch text (optional)
- Step labels
- Window chrome
- Code editor
- Terminal / CLI output
- Panels / cards
- Background patterns
- Rotating / cycling content

## Redrawing from image references

When the user provides screenshots or reference images, redraw them as canvas primitives — do not embed images. This keeps the animation resolution-independent and stylistically consistent.

1. Study the reference for layout, proportions, and key visual elements
2. Identify structural components (window frames, panels, text areas, icons)
3. Recreate using canvas paths, shapes, gradients, and text
4. Apply the animation's color palette — the reference informs *what* to draw, the theme controls *how*
5. Simplify details that won't read at video resolution

Common reference types and how to redraw:
- **IDE/editor** → window chrome + code area with syntax coloring
- **Terminal** → terminal panel with styled text output
- **App UI** → layout grid, key buttons/labels, color relationships
- **Logos/icons** → simplified canvas paths
- **Characters/mascots** → bezier paths (trace from SVG if available)

Always ask: "Can you paste a screenshot or reference image of what you'd like this to look like?"

## Glow text (titles)

Text with `shadowBlur` for a neon/holographic look. Draw text twice: once with shadow for glow, once without for sharpness on top.

## Fade-in text (body)

Simple `globalAlpha` fade using `easeOut(progress(t, start, start + 800))`. Default entrance for all body text.

## Glitch text (optional)

Characters scramble through random glyphs before resolving left-to-right. Use only when user requests glitch/retro/cyberpunk aesthetic. Optional color fringe (offset red/blue copies) while scrambling.

## Step labels

Pill-shaped badge at top center of canvas. Measure text width, draw `roundRect` behind it with subtle border and semi-transparent fill.

## Window chrome

macOS-style window frame: title bar with three traffic light dots (`#ff5f57`, `#ffbd2e`, `#28c840`), optional tab bar, optional status bar. Title bar height is about 5% of panel height.

## Code editor

Syntax-highlighted code with:
- Line numbers in gutter (dim, right-aligned)
- Keywords in accent color, rest in light gray
- Typing effect: reveal lines over time (`elapsed / typingSpeed`)
- Blinking cursor on last visible line

## Terminal / CLI output

Color conventions:
- Green: prompt character (`>`)
- Purple: slash commands (`/model`, `/chat`)
- White: arguments
- Cyan: success messages
- Amber: warnings
- Dim gray: status text
- Typing effect for commands, instant reveal for responses

## Panels / cards

Rounded rectangle containers: `shadowBlur` for depth, dark fill (`#1a1a2e`), subtle accent border (`rgba(139,92,246,0.2)`), corner radius around 10px.

## Background patterns

- **Tron grid**: perspective lines converging to vanish point with horizontal scan lines
- **Particles**: small floating dots with subtle pulse, initialized in constructor, updated each frame
- **Radial gradient**: dark center fading to darker edges

## Rotating / cycling content

Cycle through text values at a position with smooth crossfade. Use `Math.sin(phase * Math.PI)` for a bell-curve alpha per item. Typical cycle: 1-2s per item.
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall