← Component library

Task Card Conveyor

Free

Paper task cards travel along a roller belt, picking up speed before they leave the frame.

Type
Task Queue
Category
Agents & Prompts
Appearance
Diagrammatic, Minimal
Editorial role
Explainer
Motion
Slide
Duration
7.70 s · 30 fps

Customize

Use this component

npx shadcn add @betterframes/task-conveyor

This Canvas module needs no npm packages. The usage example includes your edits.

Download .mjsDownload preview
import { draw } from './task-conveyor.mjs';

// On each frame, pass this clip’s elapsed time in seconds.
// Coordinates use a 640 × 360 drawing area.
export function render(ctx, seconds) {
  ctx.save();
  ctx.scale(ctx.canvas.width / 640, ctx.canvas.height / 360);
  ctx.clearRect(0, 0, 640, 360);
  draw(ctx, seconds, {});
  ctx.restore();
}
Component source