Animate a card sliding into position on page load using a single chain of method calls instead of writing keyframe CSS.
Create a multi-step animation sequence where an element moves to a position, then fades out after a delay, using the .then() chaining API.
Apply easing curves like ease-in-cubic or ease-out-back to make UI animations feel more natural without computing cubic-bezier values by hand.
Move.js is a small JavaScript library for animating elements on a webpage using CSS3 transitions. Rather than writing out the CSS animation rules yourself, you chain method calls in JavaScript and the library translates them into the appropriate CSS properties that the browser then animates natively. The approach is designed to keep animation code short and readable. A single chain of method calls can tell an element to move to a specific position on the screen, rotate by a certain number of degrees, scale up or down, change its background color, and set a duration for all of that to happen together. You can then chain a second animation with .then() that starts after the first one finishes, allowing sequences like fading out after moving into place. Move.js includes a set of named easing functions, which control how an animation accelerates and decelerates over time. Names like ease-in-cubic or ease-out-back correspond to specific mathematical curves that change the feel of motion, making it look more natural or bouncy or snappy. These are all standard CSS cubic-bezier values, so the actual animation runs in the browser at the CSS level rather than being computed by JavaScript on each frame. The library is available through npm and as a standalone script file you can include directly in an HTML page. It was written by TJ Holowaychuk and is released under the MIT license, which allows free use in any project.
← visionmedia on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.