Monomotion

From monoes/monomind · View interactive version

Monomotion is an AI agent skill from the GitHub repository monoes/monomind. HTML-native GSAP animation system: timeline-driven, API-controllable browser animations with WebSocket/REST playback, effects and sequencing; no video rendering.

How to use this skill

Skill file

Monomotion — HTML Animation with GSAP

API-controllable, HTML-native animation using GSAP. No React, no video rendering — animations run live in the browser and are fully controllable via JavaScript API, WebSocket, or REST.

Core Philosophy

Setup

<!-- CDN — drop into any HTML file -->
<script src="https://cdn.jsdelivr.net/npm/gsap@3/dist/gsap.min.js"></script>

<!-- With ScrollTrigger plugin -->
<script src="https://cdn.jsdelivr.net/npm/gsap@3/dist/ScrollTrigger.min.js"></script>
# npm install
npm install gsap
import { gsap } from "gsap";

Basic Timeline

const tl = gsap.timeline({ paused: true });

tl.to(".box", { x: 200, duration: 0.8, ease: "power2.out" })
  .to(".box", { opacity: 0, duration: 0.4 }, "+=0.2")
  .from(".title", { y: -50, autoAlpha: 0, duration: 0.6 }, "<");

Position parameter shortcuts:

Playback Control API

tl.play();             // play forward from current position
tl.pause();            // freeze
tl.resume();           // resume from paused position
tl.reverse();          // play backward from current position
tl.restart();          // jump to start and play
tl.seek(1.5);          // jump to 1.5s (no play)
tl.progress(0.5);      // jump to 50% of total duration
tl.timeScale(2);       // 2× speed
tl.timeScale(0.5);     // half speed

// Read state
tl.time();             // current time in seconds
tl.progress();         // 0–1
tl.duration();         // total duration
tl.isActive();         // true if currently playing

Named Labels for Scene Control

tl.addLabel("intro", 0)
  .addLabel("reveal", 1.5)
  .addLabel("outro", 3.0);

// Jump to scene
tl.seek("reveal");
tl.play("outro");

API-Driven Control

See rules/api-control.md for WebSocket, REST, and SSE control patterns.

Effects & Presets

See rules/effects.md for reusable fade, slide, scale, and reveal effects.

Sequencing & Staggering

See rules/sequencing.md for staggered lists, cascades, and orchestrated sequences.

Text Animations

See rules/text.md for character-by-character, word-by-word, and typewriter effects.

Scroll-Driven Animations

See rules/scroll.md for ScrollTrigger integration — scrub, pin, and enter/leave triggers.

SVG Animations

See rules/svg.md for path drawing, morphing, and SVG-specific techniques.

Integration Patterns

See rules/integration.md for embedding monomotion in dashboards, iframes, and web components.

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.