OpenParable
Skip to content
← Back to skills

Lottie Pagination

Design
lottie-pagination

Lottie Pagination is an Agent Skill for design published in the nexu-io/motion-anything repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

An animated pagination dots indicator — Lottie JSON. A Lottie (JSON) animation — portable motion that plays identically on web and app via lottie-web. Honors prefers-reduced-motion (don't autoplay). Reserve Lottie for motion that earns its ~160KB runtime.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/nexu-io/motion-anything/blob/HEAD/recipes/lottie/lottie-pagination/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/lottie-pagination, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Lottie · Pagination

An animated pagination dots indicator — Lottie JSON. Lottie JSON from spemer/lottie-animations-json (MIT). Part of motion-anything; obeys MOTION-SPEC.md.

When to use it

  • Portable JSON motion identical on web & app; icon/control micro-animations (incl. After Effects / Jitter exports).

When NOT to use it (restraint)

  • When a pure-CSS effect would do — don't ship the Lottie runtime for a simple fade.

How to apply

  1. Include lottie.min.js (runtime) and animation.json.
  2. lottie.loadAnimation({ container, renderer:'svg', loop:true, autoplay:false, path:'animation.json' }); start on intent / guard reduced-motion.

Accessibility & performance

  • prefers-reduced-motion: don't autoplay. SVG renderer; motion-as-JSON (portable, AI-readable).