animejs

Implements web animations with Anime.js v4 including timelines, SVG, scroll, and draggable effects.

Updated Aug 26, 2026
One-click install
npx skills add https://github.com/aungpwint/presentation --skill animejs-aungpwint
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: animejs
Source: https://github.com/aungpwint/presentation/tree/main/.agents/skills/animejs
Command: npx skills add https://github.com/aungpwint/presentation --skill animejs-aungpwint

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires animejs, and includes references (resource) components.

What problem does it solve? Implementing JavaScript animations from scratch requires deep knowledge of the Anime.js v4 API, and developers often struggle with correct syntax for timelines, staggered effects, SVG morphing, scroll triggers, and draggable interactions. ## Core Features & Use Cases - Animation & Timelines: Create property animations, keyframe sequences, and choreographed multi-element timelines with precise time positioning and labels. - SVG, Scroll & Draggable: Build SVG line drawing and shape morphing, scroll-synced animations via onScroll, and physics-based draggable elements with spring easing. - Use Case: When building a landing page, use this Skill to generate a staggered hero text reveal, a scroll-synced parallax section, and an SVG logo line-drawing animation with correct Anime.js v4 imports and React integration via createScope. ## Quick Start Use the animejs skill to create a staggered fade-in animation for my card grid that triggers when it scrolls into view.

Frequently Asked Questions about animejs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a timeline animation with Anime.js v4?▼

Use createTimeline with defaults, then chain .add() calls with targets and parameters. Control sequencing with position arguments like '<' to start with the previous animation, '-=200' for overlap, or named labels for absolute positioning.

How to animate elements on scroll with Anime.js?▼

Pass onScroll() to the autoplay parameter of animate(). Set target to the observed element and use sync: true to tie animation progress directly to scroll position, or use enter thresholds to trigger playback when elements enter the viewport.

Does Anime.js v4 work with React?▼

Yes, Anime.js v4 supports React through createScope. Create a scope with a root ref inside useEffect, add animations via scope.add(), and call scope.revert() in the cleanup function to properly dispose of animations on unmount.

Can Anime.js animate SVG paths and shapes?▼

Yes, Anime.js provides SVG utilities: createDrawable for line-drawing effects using the draw property, morphTo for shape morphing between paths, and createMotionPath for moving elements along a path. Standard SVG attributes like cx and r are also animatable.

What is the difference between Anime.js JS animation and WAAPI mode?▼

WAAPI mode uses the hardware-accelerated Web Animations API for better performance on transform and opacity animations, while the JS engine supports the full feature set including SVG morphing and complex modifiers. Use waapi.convertEase() to adapt easing functions.

How do I make a draggable element with spring physics in Anime.js?▼

Use createDraggable with a container boundary and set releaseEase to createSpring with stiffness and damping values. Configure snap points via the x and y axis parameters, and use callbacks like onDrag and onSettle to respond to interactions.