AGENT SKILL

monomotion

HTML-native GSAP animation system: timeline-driven, API-controllable browser animations with WebSocket/REST playback, effects and sequencing; no video rendering.

License 许可
Apache-2.0
所属仓库
monoes/monomind
最近更新
2026-11-14
Stars
★ 23
Forks
2

01 前言 Front Matter

name
monomotion
tools
[ "Bash", "Read", "Write", "Edit" ]
version
1.0.0
triggers
[ "/monomotion", "/animate", "/animation", "make an animation", "create an animation", "add animation", "build animation", "animate this", "animate the", "web animation", "html animation", "browser animation", "motion graphics", "animated ui", "timeline animation", "gsap", "control animation", "api animation", "animate via api", "playback control", "animation controller", "animated intro", "animated outro", "transition animation", "scroll animation", "text animation", "svg animation", "animate on scroll" ]
description
HTML-native GSAP animation system: timeline-driven, API-controllable browser animations with WebSocket/REST playback, effects and sequencing; no video rendering.

02 资源文件 7

03 SKILL.md 正文

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

  • Animations are timelines — sequences of tweens with precise timing
  • Timelines are pausable, seekable, reversible at any point
  • Control surfaces (API, WebSocket, UI) are decoupled from animation definitions
  • CSS transitions and keyframes are not used — GSAP owns all motion

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:

  • "+=0.2" — 0.2s after previous tween ends
  • "-=0.1" — 0.1s before previous tween ends
  • "<" — same start time as previous tween
  • "1.5" — absolute 1.5s mark in timeline

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.

04 同仓库更多 Skills

monoes
monoes/monomind

isms-audit-expert

Use when planning or running an ISO 27001 ISMS audit: risk-based audit schedules, Annex A control assessment, Statement of Applicability and nonconformities. Auditor-side procedures, versus compliance-auditor, which is org role guidance across SOC 2, HIPAA and PCI-DSS.

★ 23
monoes
monoes/monomind

instrument-data-to-allotrope

Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full ASM JSON, flattened CSV for easy import, and exportable Python code for data engineers. Common triggers include converting instrument files, standardizing lab data, preparing data for upload to LIMS/ELN systems, or generating parser code for production pipelines.

★ 23
monoes
monoes/monomind

experiment-designer

Use when planning a product A/B or multivariate test: If/Then/Because hypotheses, primary and guardrail metrics, sample size and MDE, ICE prioritization. For logging and reproducing ML runs use experiment-tracker; for scientific study design use experimental-design.

★ 23
monoes
monoes/monomind

digest

Generate a daily or weekly digest of activity across all connected sources. Use when catching up after time away, starting the day and wanting a summary of mentions and action items, or reviewing a week's decisions and document updates grouped by project.

★ 23
monoes
monoes/monomind

design-critique

Get structured design feedback on usability, hierarchy, and consistency. Trigger with "review this design", "critique this mockup", "what do you think of this screen?", or when sharing a Figma link or screenshot for feedback at any stage from exploration to final polish.

★ 23
monoes
monoes/monomind

deployment-pipeline-design

Use when architecting a multi-stage CI/CD pipeline with approval gates, SAST and DAST scans, environment promotion, canary rollout and automated rollback. Design-level; for concrete Dockerfile and health check patterns use deployment-patterns.

★ 23