A fast and versatile JavaScript animation libraryColor value Color values in the following formats can be parsed and used as values for animatable color properties. Accepts. A bit of digging seems to suggest that the default background color of the element is rgba (0,0,0,0) and that Anime.js doesn't seem to work when using colors with alpha channels.
I think this explains why the animation starts with black. Anime.js is a small, lightweight JavaScript library with a simple and small powerful API. It works with DOM element, CSS and JavaScript object.
Animation with CSS properties we can animate any CSS property. Below few of the examples are described with different CSS properties: Example 1: First we have to set a target the div or element can be class or id, which we want to animate. The CSS.
Anime.js handles color animations effectively. You can animate CSS properties like color, background-color, border-color, fill (for SVG elements), and stroke (for SVG elements). Anime.js lets you animate a lot of CSS properties, like the width, height, and color, for different target elements.
The final values of different animatable properties like background. A fast and versatile JavaScript animation libraryDocumentation This documentation is brought to you with the help of our incredible sponsors. Platinum sponsors Ice Open Network Silver sponsors LambdaTest InSpatial You can support the project and promote your product or service specifically to Anime.js's audience of web developers by becoming a sponsor on GitHub Sponsors.
Properties in Anime.js represent various attributes or values of HTML elements that can be animated to create dynamic and interactive web animations. These properties allow you to change the appearance and behavior of elements such as position, size, color, opacity, and more. 28 Best Anime.JS Animation Examples 2025 Anime.js is a lightweight JavaScript animation library with multi-target, simple, and powerful API.
It works with almost anything, including CSS properties, SVG or DOM properties, and other JS objects. It is similar to jQuery or any other familiar JS library you might have worked with previously. Background animation effects using Anime.js library on CodePen.
Colors anime.js accepts and converts Hexadecimal, RGB, RGBA, HSL, and HSLA color values. CSS color codes (e.g.: 'red', 'yellow', 'aqua') are not supported.