animejs
Versatile JavaScript animation engine for DOM, CSS, SVG, and JavaScript objects. Use when creating timeline-based animations, stagger effects, SVG morphing, keyframe sequences, or complex choreographed animations. Triggers on tasks involving Anime.js, timeline animations, staggered sequences, SVG path animations, morphing, or multi-step animation choreography. Alternative to GSAP for SVG-heavy animations and React-independent projects.
Security Assessment
About animejs
The animejs skill provides guidance for creating web animations with Anime.js, a lightweight (~9KB gzipped) JavaScript animation engine that works with DOM elements, CSS properties, SVG attributes, and plain JavaScript objects. It solves the problem of building precise, choreographed, framework-agnostic animations, and is positioned as an alternative to GSAP for SVG-heavy animations and React-independent projects.
The skill documents the core anime() function, ways to specify targets (CSS selectors, DOM nodes, arrays, and JS objects), and animatable properties spanning individual CSS transforms, SVG attributes for path morphing and line drawing, and DOM attributes. It covers timelines with relative positioning offsets, powerful stagger utilities including grid and from-center effects, keyframes, and rich easing including spring physics, steps, and cubic-bezier. Beyond the SKILL.md, it bundles reference documents (a full API reference, timeline guide, and stagger guide), an assets README, and two Python helper scripts (a timeline builder and an animation generator) that assist in producing animation code. The Python scripts observed in the scan generate animation code and contain no shell execution, network calls, or file-destructive operations.
It targets frontend and web developers, designers, and creative coders building timeline-based sequences, staggered reveals, SVG morphing and drawing, keyframe animations, and complex choreography across React, Vue, or vanilla JavaScript. Use cases include hero animations, SVG illustrations, grid stagger effects, and multi-step sequences where precise timing control matters.
FAQ
What can Anime.js animate?
DOM elements, CSS properties and individual transforms, SVG attributes (including path morphing and line drawing via strokeDashoffset), DOM attributes, and plain JavaScript object properties.
Does it work with React or other frameworks?
Yes. Anime.js works with vanilla JavaScript and any framework including React and Vue, which is why the skill positions it as a React-independent alternative to GSAP.
How are complex sequences handled?
Through timelines that chain animations with relative offsets like '+=200' or '-=500', plus stagger utilities with grid, from-center, and easing options.
What is included beyond the main guide?
A full API reference, a timeline guide, a stagger guide, an assets README, and two Python helper scripts (a timeline builder and an animation generator) for producing animation code.
What easing options are available?
Built-in ease-in/out families, plus custom cubic-bezier, spring physics (mass, stiffness, damping, velocity), steps, and linear keyframe easings.
Install animejs
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
freshtechbro/claudedesignskills