2.4.0
- deterministic operation-count budgets for core and React hot paths - #2323 by @STRML
- bound untrusted layout input and the compaction work it can cause - #2328 by @STRML
- add enableUserSelectHack to dragConfig and resizeConfig (#1630) - #2311 by @cmaciasjimenez
- coded dev warnings and the 2.4 deprecations (RGL-47) - #2341 by @STRML
- replace ESLint with oxlint - #2357 by @STRML
- adjust scaled drag position to be relative to parent container (#2231) - #2253 by @olagokemills
- render active items between snapped grid steps - #2304 by @sergioperezcheco
- golden-master corpus for core and extras algorithms - #2320 by @STRML
- moveElement sorts once per call instead of once per step - #2327 by @STRML
- replace the 28 TestUtils.Simulate calls in lifecycle-test - #2331 by @STRML
- bound untrusted layout input and the compaction work it can cause - #2328 by @STRML
- stop edge auto-scroll when the dropping placeholder unmounts (#2312) - #2314 by @b84330808
- external drops push the items they land on again (#2313) - #2334 by @STRML
- bound fastVerticalCompactor work on a negative x - #2335 by @STRML
- two regressions from the layout-bounds work (#2328) - #2336 by @STRML
- add enableUserSelectHack to dragConfig and resizeConfig (#1630) - #2311 by @cmaciasjimenez
- keep 2.x sizes below 1 and breakpoint generation (#2328 follow-up) - #2337 by @STRML
- sync layoutRef when removing the drop placeholder (port of #2248, #2265 test) - #2339 by @STRML
- moveElement no longer mutates its input (RGL-11) - #2342 by @STRML
- coded dev warnings and the 2.4 deprecations (RGL-47) - #2341 by @STRML
- one onLayoutChange per drag, resize or compactor swap (RGL-15) - #2343 by @STRML
- re-sync on a same-type compactor change; RGL_W008 for getCompactor (RGL-17) - #2344 by @STRML
- warn RGL_W002 once per grid, and only for geometry - #2346 by @STRML
- keep moveElement's 2.x in-place contract - #2347 by @STRML
- spatial indexes for classic vertical and horizontal compaction - #2351 by @STRML
- replace ESLint with oxlint - #2357 by @STRML
- keep lint and fmt out of .claude worktrees, pass allowMobileScroll changes to items - #2370 by @STRML
-
build: migrate from Yarn 1 to Yarn 4 through Corepack - #2299 by @STRML
-
golden-master corpus for core and extras algorithms - #2320 by @STRML
-
golden-master interaction traces for the React layer - #2321 by @STRML
-
deterministic operation-count budgets for core and React hot paths - #2323 by @STRML
-
scenario-driven Playwright suite with per-frame box baselines - #2332 by @STRML
-
drop unused prop-types and resize-observer-polyfill - #2338 by @STRML
-
2.4.0 changelog so far, and keep jest out of nested worktrees - #2340 by @STRML
-
keep lint and fmt out of .claude worktrees, pass allowMobileScroll changes to items - #2370 by @STRML
-
add changelog entries for 2.2.2 through 2.3.0 - #2298 by @STRML
-
delete compact-compat and share clamp and column width - #2322 by @STRML
-
one axis-generic classic compactor without O(n^2) lookups - #2326 by @STRML
-
RFC 0003, the v2.1 engine and extension points - #2329 by @STRML
-
RFC 0003 revision 5, ship the engine as 3.0.0 with breaking changes - #2333 by @STRML
-
build: remove the follow-redirects age-gate exemption - #2307 by @Apu-Emdad
-
run local Playwright on system Chrome with the sandbox on - #2350 by @STRML
-
back off the classic horizontal wrap-jump check - #2349 by @STRML
-
dense tide for ordinary rows in fastHorizontalCompactor - #2348 by @STRML
-
have CodeRabbit approve PRs once its comments are resolved - #2352 by @STRML
v5.0.0
https://github.com/user-attachments/assets/249cb69e-883f-4f3e-9477-b2895bd67aa7
- Editor
- New visual editor that shows the animations of your code as controls and on a timeline in your browser, and saves your changes back into your code (learn more: https://animejs.com/editor)
- Muting animations and properties
- New
mutedparameter foranimate(),createTimeline()andcreateTimer()to disable value updates, callbacks and completion promises while keeping the timing, and for individual animation properties to disable their value updates
- New
- Spring
- New
stretch()method to make a spring settle in a given time with the same bounce and curve, likespring({ bounce: .5 }).stretch(1000) - New
minSettlingDurationgetter, the shortest duration a spring can settle in
- New
- Color
- New
utils.parseColor()to convert a hex,rgb(),hsl(),oklab(),oklch()orcolor()string to[r, g, b, a], likeutils.parseColor('#ff0000')returning[255, 0, 0, 1]. Named colors,transparent,lab(),lch(),hwb()and other strings return[0, 0, 0, 1]
- New
- Engine
- New optional time argument for
engine.update()to render at the timestamp of your own loop, aperformance.now()time asrequestAnimationFramegives, likerenderer.setAnimationLoop(time => engine.update(time))withengine.useDefaultMainLoop = false
- New optional time argument for
- Timer
durationanditerationDurationof timers, animations and timelines,durationofwaapi.animate()animations, andsettlingDurationof springs are now read only: usestretch()to change them- The
durationofanimate(el, { x: 1, duration: 0 }), of a timeline with onlycall()orset()children, and of an animation afterstretch(0)now reads1e-7instead of1e-11 currentTimeanditerationCurrentTimenow read whole milliseconds, like33instead of33.3afterseek(33.3), and0.123instead of0.1235afterseek(.123456789)withengine.timeUnit = 's'
- Timeline
timeline.labelsno longer inherits fromObject- A value of a child of a timeline can now show floating point noise, like
xat29.999899999999997instead of29.9999atseek(2999.99)on a timeline with three1000ms children going to10,20and30withease: 'linear'
- Engine
- The
deltaTimeof the engine, timers, animations and timelines is now read only computeDeltaTime()is removed: readdeltaTimeinsteadengine.pause()now also holds draggables and scroll synced animations, like a 100 px drag leavingdraggable.xat0instead of100untilengine.resume()engine.resume()on an engine that is not paused now restarts each animation from its last frame, like anxanimation to1000in1000ms with aresume()call after each frame reading400instead of812at800ms
- The
- Muted
- A target property named
mutedcan no longer be animated or set, becausemutedis now a parameter
- A target property named
- Draggable
- The
velocityof a draggable is now read only
- The
- Utilities
utils.get()now returns colors in thergba()form, likergba(255,0,0,1)instead of#ff0000utils.forEachChildren(),utils.addChild(), andutils.removeChild()no longer accept custom names for the properties that link the items
- TypeScript
- The
RandomNumberGeneratortype is removed: useReturnType<typeof utils.createSeededRandom>
- The
- Animation
- A new animation now also replaces the animations of the same property that are scheduled to start after it:
animate(el, { x: 200, delay: 200 }); animate(el, { x: 300 }); // 4.5: ends at 200 // 5.0: ends at 300
.restart(),.play()and.seek()on a replaced animation now take its properties back from the newer animation:const enter = animate(el, { scale: 1.5, duration: 300, autoplay: false }); const leave = animate(el, { scale: 1, duration: 300, autoplay: false }); enter.restart(); // 4.5: scale stays at 1 // 5.0: scale animates to 1.5, and leave is cancelled without calling its onComplete
- An animation that lost a property no longer writes it when you seek it to a time before the newer animation was created:
const a = animate(el, { x: 100, y: 100, duration: 1000 }); // 400 ms later const b = animate(el, { x: 300, duration: 2000 }); a.seek(100); // 4.5: x and y take the values of a // 5.0: x keeps the value of b, and y takes the value of a
- A new animation now also replaces the animations of the same property that are scheduled to start after it:
- Timeline
- Children now apply their
fromvalues when they are added, without.init(), when no earlier child animates the same property:const tl = createTimeline({ autoplay: false }) .add(a, { opacity: [0, 1], duration: 300 }, 500) .add(b, { y: [50, 0], duration: 300 }, 800); // 4.5: a.opacity is 1 and b.y is unchanged until tl.init() is called or the timeline reaches each child // 5.0: a.opacity is 0 and b.y is 50 after the last .add()
- A child now takes a property from the earlier children when its animation starts, after its
delay, instead of at its position, so the earlier children keep playing during the delay:createTimeline({ defaults: { ease: 'linear' } }) .add(el, { x: 100, duration: 1000 }) .add(el, { x: 200, duration: 500, delay: 300 }, 500); // 4.5: x stays at 50 from 500 to 800 // 5.0: x goes on to 80 at 800, where the second animation starts
svg.morphTo()andscrambleText()in a child with adelaynow start from the shape or the text at the end of the delay
- Children now apply their
- Completion promises
.then()now resolves with the result of its callback, waits for a returned promise or animation, rejects when its callback throws, and resolves to the instance without a callback:await animation.then(() => 42); // 4.5: undefined // 5.0: 42 await intro.then(() => outro.play()); // 4.5: resolves when intro completes // 5.0: resolves when outro completes too await animation.then(() => { throw new Error('boom') }); // 4.5: never resolves or rejects // 5.0: rejects with the error
- Transforms
- Individual transform properties like
xorrotatenow always win overtransformin the same animation, whatever their order:animate(el, { x: 100, transform: 'rotate(45deg)' }); // 4.5: rotate(45deg) // 5.0: translateX(100px)
- The
transformof an element is now written after its other animated styles, which changes the order of the declarations in itsstyleattribute and of theMutationObserverrecords
- Individual transform properties like
- Easing
- A custom
easefunction now runs once per frame for all the properties and targets that share its ease, delay and duration, instead of once per property and target - The string syntax of the
steps(),linear(),irregular()andcubicBezier()eases, likeease: 'steps(4)', no longer logs a warning and plays as a linear ease irregular()now gives each step a random speed around a constant pace, so the progress no longer holds still, reaches1before the end, or always runs ahead of the linear pace. Arandomnessabove1now makes more slow steps and fewer fast ones, likeirregular(12, 3)with no time at zero speed instead of about 28% of it
- A custom
- Stagger
- The
startof a range now adds to its first value, likestagger([200, 800], { start: 100 })going from300to900instead of100to700. As a timeline position, a range now starts at its first value
- The
- Function-based values
- A function-based
delaynow runs before the function-basedto,from,easeanddurationof the same property:animate(el, { x: { to: () => log('to'), delay: () => log('delay') } }); // 4.5: to, delay // 5.0: delay, to
- A function-based
delaynow also runs when a function value likescrambleText()returns its owndelay, and that function value can run two times in a timeline
- A function-based
- Precision
- Times and stagger values are now rounded to 7 decimals, so a seek to a written time reaches it exactly, and values smaller than that, like
stagger(1e-8), become0
- Times and stagger values are now rounded to 7 decimals, so a seek to a written time reaches it exactly, and values smaller than that, like
- Three.js adapter
- A scale or opacity above
0now shows a mesh only when a scale or opacity of0hid it, andutils.get(mesh, 'visible')returnstruefor a mesh hidden that way:mesh.visible = false; animate(mesh, { scale: [1, 2] }); // 4.5: mesh.visible is true from the first frame // 5.0: mesh.visible stays false
- A scale or opacity above
- Scroll
- A number
syncofonScroll()now smooths less near1and more near0, likesync: .99catching up with the scroll in about 0.07 s instead of 0.4 s at 60 fps, andsync: .1in about 8 s instead of 3 s. To keep the catch-up time of 4.5 at 60 fps, convert a value withMath.log(-150 * Math.log(.99 - .19 * sync)) / Math.log(227), likesync: .5tosync: .52
- A number
- Performance
- Measured against 4.5.0 in Chrome. 2× means that anime.js does the same work in half the time. Playback is the time to render a frame or to seek, setup is the time to create animations. The frame rate gain depends on how much of each frame anime.js uses, the rest being your own code and the rendering of the browser
- CSS transforms: 1.2 to 1.45× faster playback, 1.75× with keyframes and 2× with staggered keyframes, and up to 5.7× faster setup for one staggered animation on 1,000 elements
- CSS properties, CSS variables, and SVG attributes: 1.05 to 1.1× faster playback, and 1.3 to 1.5× with staggered keyframes. Colors play back at the same speed as in 4.5, except 1.45× faster with staggered keyframes
- Timelines: 3.3× faster playback with many overlapping steps, 2.85× with nested timelines, 1.45× with steps chained on the same targets or scroll-driven scrubbing, and 2 to 40× faster setup, like 1.2 ms instead of 49 ms to add 1,000 children
- Animations that replace running ones: 1.55 to 1.6× faster playback and 14 to 24× faster setup, like 0.65 ms instead of 16 ms to replace 1,500 running values
- Staggered keyframe animations: 3.4 to 5.3× faster setup on every target type
- JavaScript objects: 1.05 to 1.4× faster playback, 1.5× with keyframes and 1.95× with staggered keyframes, and up to 2.9× faster setup for one staggered animation on 10,000 objects
- Long keyframe lists: 34× faster setup, like 0.55 ms instead of 18 ms for 500 keyframes
- Values with several numbers, like SVG points or 3D vectors: 1.15× faster playback, 1.25× faster setup, and 3.7× faster playback through adapters
- Blended animations: 1.15× faster playback and 1.35× faster setup, with less temporary memory
- Animations with
composition: 'none': 1.4× faster playback and 1.1× faster setup - Three.js
Object3D: 1.1 to 1.35× faster playback, 1.35× with keyframes and 1.65× with staggered keyframes, and up to 3.9× faster setup for one staggered animation on 10,000 objects - Three.js
InstancedMesh: 2.85 to 3.2× faster playback with a stagger, 1.85 to 2.8× with one animation per instance, 2.25× with keyframes, and 1.1 to 3.25× faster setup, with less memory per instance - Power eases, like
'inOutQuad'or the default'out(2)': about a third less memory allocated on each frame on a page that uses several eases svg.createMotionPath(): 2× faster playback withtranslateXandtranslateY, 1.3× withrotateas welltimeline.remove(): 4× faster
- Timeline
- New
.call({ id, callback, muted }, position)and.sync({ id, target, muted }, position)forms to name or mute callbacks and synced animations .sync()now accepts an array, liketimeline.sync([intro, outro], stagger(200))- Synced animations now inherit
defaults.muted
- New
- Layout
- Images, videos, and canvases now animate their size with a scale instead of
widthandheight, for smoother animations of large media
- Images, videos, and canvases now animate their size with a scale instead of
- Color
- New support for animating
oklab(),oklch(), andcolor()values in thesrgb,srgb-linearanddisplay-p3spaces, including mixed formats:animate('.box', { color: ['oklch(70% 0.2 30)', 'color(display-p3 0 0.8 1)'] }) - Colors outside sRGB, like
color(display-p3 0 1 0), now animate in a clipped sRGB color space instead of not animating at all: usewaapi.animate()to keep the full color space
- New support for animating
- Soft revert
- New
.revert(false)option for timers, animations, and timelines to cancel and restore the original values without seeking back to the start
- New
- Random
- New options object for
utils.random(), likeutils.random({ min: 0, max: 100, decimals: 2 }), withseedandperTargetoptions - Generators from
utils.createSeededRandom()now accept an options object, likeutils.createSeededRandom(42)({ min: 10, max: 20 }) utils.randomPick()now accepts a random generator as its second argument, likeutils.randomPick(['red', 'blue'], utils.createSeededRandom(42))
- New options object for
- Easing
- New
seedparameter forirregular()to repeat the same steps at each call and each page load, likeirregular(12, 1.5, 7), as theseedofutils.random()does. Another number draws other steps. Without a seed, or withfalse, each call draws new steps
- New
- TypeScript
- More accurate callback and
.then()types, including async results and animation subclasses
- More accurate callback and
- Scroll
- Clearer enter and leave markers for
onScroll({ debug: true }), with less flicker when resizing the window - More accurate
velocityand direction inonScroll(), now measured on every frame instead of 30 times per second, with the samevelocityfor the same scroll speed at any frame rate, like avelocitythat changes on each frame of a 120 Hz display instead of every fourth frame
- Clearer enter and leave markers for
- Version
- New
versionexport, the version of the package:import { version } from 'animejs'
- New
- Timeline
- Fix backward seeks showing the
fromvalue of a later child before that child starts - Fix a seek to the end of a loop skipping the
call()children of that loop - Fix a backward seek leaving a property on the value of a later child when an earlier child with
loopandalternateowns it again - Fix a child with
reversed: trueor aplaybackEasenot playing before a later child of the same property starts - Fix a child starting from the wrong value after a looped child with keyframes
- Fix a child starting from
0instead of the value of the previous child when another child replaced its first target - Fix a
reversedtimeline not showing the value of an earlier child between two children of the same property - Fix a stretched timeline not completing at its end
- Fix
utils.remove()andtimeline.remove()on a timeline not updating itsduration - Fix
timeline.refresh()restarting a function-based child from the current value of its target instead of the value of the previous child - Fix a seek that jumps over a child running its
onRenderwhen a later child writes the same property - Fix a looping timeline not running
onUpdateon a seek backward from its end - Fix descending
stagger()ranges used as timeline positions starting before the end of the timeline, like1000,900,800instead of1200,1100,1000 - Fix
'<'as the position of the first child throwing an error - Fix a relative position on a missing label, like
'missing+=20', placing its child atNaNinstead of the end of the timeline - Fix
onBeginof a child with a negativedelaynever running at the start of a timeline, or running on every frame later in it - Fix a child that ends before
0keeping its start value on the first seek after it - Fix a child with a negative position skipping its end value and its
onCompletewhen a seek or a long frame goes over the end of a loop of its timeline - Fix a child with
duration: 0in a timeline that has adelayrunningonCompletewithoutonBegin - Fix
.stretch()on a child not updating the duration of its timeline - Fix
.stretch()sometimes leaving acall()at its old position .stretch(0)on a timeline now does nothing instead of setting the labels and the positions of the children to0for good- Fix a
call()on the turn of analternatetimeline with aloopDelayrunning three times - Fix a long frame over a loop skipping the
call()children of the loop it leaves - Fix
.stretch()on a timeline turning itscall()andset()children into short animations - Fix
.refresh()on a child of a timeline leaving the later children on the start value they took before - Fix the
call()children of a timeline created withreversed: truenever running - Fix a seek over the turn of an
alternatetimeline, or back over a loop, skipping thecall()children of the iteration it leaves - Fix a
call()at a negative position not running on a seek back over a loop - Fix
onCompleteof a child that ends on or before the turn of analternatetimeline not running when a frame or a seek goes over the turn - A
call()or aset()at a negative position now runs like one at0 - Fix
play()on a new timeline withreversed: truerunning everycall()and theonBeginandonCompleteof every child at once - Fix a child that rests past its end keeping an old value after
utils.remove()of a later child, or after another animation moved its property while the timeline was complete - Fix
.remove(),.refresh()and the.stretch()of a child on a timeline taking a property back from a newer animation of the same target and cancelling it - The
iterationDurationof aset()child of a timeline, and of any child whose properties all last0ms, now reads0like acall()child - Fix
utils.remove()on one child of a timeline keeping the value it took from the removed child - Fix keyframes with
composition: 'none'in a looping timeline showing the wrong keyframe after a seek - Fix a child with a
playbackRatewriting a property after a later child with afromvalue took it - Fix
svg.morphTo()and other function values reading the last keyframe of the previous child instead of the keyframe that plays at their start - Fix a
call()not running again after a muted seek back or arevert(), and running late after a muted seek past it - Fix the
call(),set()and 0 ms children of a looped 0 ms timeline running only once - Fix
reverse()on a looped timeline that holds onlyset()orcall()children completing it one frame late - Fix
.call(null)and other non-function values throwing an error when the timeline reaches them - Fix the
frameRateof a child of a timeline withcomposition: falsenot applying, likecreateTimeline({ composition: false }).add(el, { x: 100, frameRate: 30 }).init()updating the child on every frame instead of 30 times per second - Fix a seek of a timeline outside of a callback not updating a child with a
frameRate, likex: 1000, duration: 1000, ease: 'linear', frameRate: 10keeping its value instead of showing500onseek(500)right afterseek(100) - Fix
onBeforeUpdate,onUpdateandonRenderof a child, andonRenderof its timeline, not running when the timeline moves back before the start of the child or starts a new loop, likeseek(500)afterseek(2000)settingxto0without calling theonUpdateofx: 100, duration: 400added at1000 - A
set()now callsonBeforeUpdate,onUpdateandonRenderwhen a seek goes back before it, likeseek(400)afterseek(600)on aset()at500, which called onlyonComplete - A child now calls
onBeforeUpdate,onUpdateandonRenderon a frame that aframeRateskips when that frame moves it back to its start, as on a skipped frame that ends it, like a child of aframeRate: 15timeline withalternate: truecallingonUpdatewith its start value on the way back - Fix a child calling
onBeginandonCompletewhen the playhead does not reach it, or on a muted seek, in a timeline that also holds async()ed timeline, like aset()at100before aset()of the same property at600calling both onseek(850)afterseek(750)in an800ms timeline withloop: 1 - Fix a muted seek and
init()of a timeline calling the callbacks of itssync()ed timers, animations and timelines, likeseek(300, true)callingonBegin,onUpdateandonRenderof an animation synced at100 - Fix a muted seek and
init()of a timeline calling the callbacks of the timers, animations and timelines that a child animates withcurrentTime, likeseek(300, true)callingonBeginandonUpdateof both timers afteradd([timerA, timerB], { currentTime: [0, 1000], duration: 1000 }) - Fix a timeline calling
onPauseof a playing timer, animation or timeline each time it seeks it, likeseek(300)callingonPauseof a timer that plays aftersync(timer)
- Fix backward seeks showing the
- Animation
- Fix
progressorcurrentTimeassigned on a playing animation ofcreateAnimatable()callingonCompleteandonPauseduring the move, likeanimatable.animations.x.progress = .3afteranimatable.x(100) - Fix
utils.keepTime()callingonPauseof the new animation two times on each call after the first one, like threeonPauseinstead of one on the second call withanimate(el, { x: 100, loop: true }) - Fix unit conversions ignoring the size rules of the element, like a
max-width, padding, a border, an inline display or a flex container - Fix floating point errors stopping an animation or its keyframes short of their end, like
99.99999999999997instead of100 - Fix
.cancel()on a replaced animation breaking later animations of the same property - Fix
.revert()removing the original inline styles after keyframe animations - Fix
.revert()not restoring original values of0,null,undefined, or an empty string - Fix
onCompleterunning again on a seek past the end of a completed animation - Fix blended transforms no longer updating after one of the blended animations is cancelled or completes
- Fix a property with three or more keyframes not going back to its first value when a looping timeline restarts or a short backward seek passes its start
- Fix
.reverse()after completion holding the end value for as long as the last frame went past the end - Fix
.stretch()moving an animation in time, so a new animation of the same property took its start value from the wrong animation - Fix cancelled animations using
composition: 'blend'affecting later animations of the same property - Fix
.reverse()on a looped animation with aloopDelayjumping to another value - Fix an animation with
reversed: trueand aloopDelaynot holding the start of its next loop during each loop delay and callingonLooplate, likex: 100, duration: 1000, loop: 2, loopDelay: 500holding0instead of100during the delays and callingonLoopat1500and3000instead of1000and2500 - Fix negative
delayvalues:currentTimenow counts from0afterseek(0)andplay(), and a negativedelaylonger than the duration no longer shows the end atseek(0), jumps to the start on.reverse(), or skips the end value when the animation is revived - Fix a seek on a looped animation with a negative
delayadding the time that the delay skips, likescale: [0, 1]withduration: 7000,loop: true,alternate: true,delay: -5250andease: 'linear'showing0.75instead of0atseek(0) - Fix a looping animation with a
delaykeeping its final value after a seek backward from its end, like100instead of95 - Fix a
reversedanimation keeping a later value after a seek back into itsdelay - Fix
playbackEaseshowing a value from the middle of an animation during its delay - Fix
.refresh()throwing an error when a function value returns an options object or a from-to array - Fix
.refresh()reading the current value in the wrong unit when a function value returns another unit, like180turninstead of0.5turn - Fix
.refresh()writingNaNwhen a function value returns fewer numbers than the end value - Fix
.refresh()keeping the old value of a function value that creates another animation - Fix a function value that creates another animation changing the duration, the keyframes, or the start, end or original values of its own animation
- Fix an empty keyframe array on a transform property, like
y: [], stopping the other transform properties of the animation - Fix
.stretch()during playback jumping to another value, like31instead of61 - Fix
.stretch()on a looping animation leaving its value in the middle when the next seek goes past the new duration - Fix
.stretch()adding floating point errors on each call: the newdurationis now rounded to 7 decimals - Fix
.stretch(0)losing the proportions of keyframes and loops for the next.stretch() - Fix the
currentIterationanditerationCurrentTimesetters ignoringloopDelay - Fix a property with
duration: 0and adelayending slightly off its final value - Fix a function value reading the color of the previous keyframe without its
modifier - Fix a keyword in the inline style of an element, like
red,transparent,boldorinherit, read as written instead of as its computed value, socolor: redstayedredinstead of animating andutils.get()returned'red'instead ofrgba(255,0,0,1)
- Fix
- Promises
- Fix only the last
.then()callback running when several are registered on the same instance
- Fix only the last
- Color
- Fix
rgb()andhsl()values with spaces, a slash alpha, percentages, or aturn,gradorradhue throwing an error, likergb(255 0 0 / 50%) - Fix the channels of
rgb()andhsl()colors and the alpha of every color out of range animating out of range instead of clamping like CSS, likergb(300, 0, 0)writingrgba(300,0,0,1)instead ofrgba(255,0,0,1) - Fix a color with channels that are not numbers, like
hsl(a, b, c), throwing an error instead of reading as[0, 0, 0, 1] - Fix gray
hsl()colors animating to black - Fix colors fading to transparent when animating from or to a number
- Fix
- Easing
- Fix the Expo and Elastic eases jumping to their end value on the last frame. Their curves also change a little, like
outExpoat 50% giving0.969697instead of0.96875 - Fix
spring()parameters above 10,000 being silently capped
- Fix the Expo and Elastic eases jumping to their end value on the last frame. Their curves also change a little, like
- Engine
- Fix
engine.pause()andengine.resume()returningundefinedwhen they have nothing to do, likeengine.pause().resume()throwing aTypeErrorbefore the first animation plays - Fix a timer, animation or timeline created or played after
engine.pause()starting the engine again, like anxanimation from 0 to 1000 in 1000 ms paused at211reading811100 ms after ananimate()call made 500 ms into the pause. It now stays at211and the new animation at its beginning untilengine.resume() - Fix
engine.pausedreadingtruebefore the firstengine.pause(), andengine.pause()doing nothing when no animation plays, likeengine.pause(); animate(target, { x: 100, duration: 500, ease: 'linear' })movingxto62in 300 ms instead of keeping it at0untilengine.resume() - Fix the engine and timers with a
frameRaterendering two times in one millisecond after a late frame - Fix an animation started while no other animation runs rendering one frame late, like an animation played from a
scrollevent listener - Fix the engine keeping the CPU busy in Node between two frames, like 33805 callbacks and 122 ms of CPU for a 500 ms animation instead of 110 callbacks and 8 ms
- Fix
frameRateandengine.fpsletting a faster display update more often than the limit, like 72 updates per second withframeRate: 60on a 144 Hz display, and 300 instead of about 240 on a 300 Hz display. A display up to 1% faster than the limit still updates on each frame - Fix
frameRateandengine.fpsupdating two times faster than the limit for two frames after a late frame, like intervals of 16.7 then 16.7 ms instead of 33.3 ms withframeRate: 30on a 60 Hz display after one frame of 62 ms - Fix a timer, animation or timeline updating again one frame after its first update at a lower
frameRate, like two updates 16 ms apart afterframeRatechanges from the default to30on 60 Hz frames - Fix
engine.deltaTimecounting the time without animations on the first frame after the engine wakes, like about2000instead of16at 60 fps after 2 seconds without animations - Fix animations and
deltaTimemoving by uneven steps on frames that the browser does not drop, like steps of 7, 8, 9 or 10 ms instead of the 8.3 ms between the frames of a 120 Hz display - Fix
engine.update()skipping a frame when an animation or timer is created right before it withengine.useDefaultMainLoop = false, like 11 updates in 30 frames with oneanimate()call before eachengine.update() - Fix
engine.speed = 0stopping every playing animation for good, like an animation that stays at the same value afterengine.speed = 1. It now holds the animations until the speed changes again - Fix
engine.speedset from a callback making the animations that update after it in the same frame jump for one frame, like a5000ms animation going from76to152then back to84onengine.speed = .5in theonUpdateof an animation created before it - Fix timers, animations and timeline children with a
frameRateupdating at uneven intervals when a frame callback runs late, like updates 48 then 16 ms apart instead of 32 ms withframeRate: 30on frames 16 ms apart
- Fix
- Layout
- Fix
progressorcurrentTimeassigned on a playing layout animation ending it at once, likelayout.update(...).progress = .5callingonCompleteandonPauseand removing theis-animatedclass while the animation goes on - Fix transformed elements keeping their end transform inline after a transition, which blocked later stylesheet transforms like a hover rotation
- Fix a stylesheet transform jumping to its end value when a transition starts from
transform: none
- Fix
- WAAPI
- Fix completion callbacks running and promises resolving after
.seek(time, true) - Fix animations completing or being removed after a muted seek backward from the end, like
.seek(100, true)after.complete() - Fix reversed animations reporting their duration as
currentTimeafter completion instead of0 - Fix
.cancel()writing the computed values inline one frame later, over the inline styles set after the cancel - Fix
.cancel()removing an inlinetransform: nonefrom its targets - Fix an ease name of
Object.prototype, likeease: 'constructor', throwing an error instead of playing as a linear ease
- Fix completion callbacks running and promises resolving after
- Scroll
- Fix the
syncsmoothing speed ofonScroll()depending on the frame rate - Fix
.refresh()of a scroll observer moving a linked animation with a negativedelayto the wrong time - Fix
onScroll()keeping the engine running after scrolling stops - Fix
onScroll()reacting one frame late to a scroll that starts after a pause, like a linked animation withsync: trueupdating on the second frame of the scroll instead of the first - Fix the callbacks of a scroll that starts half a second after the previous one reading the direction and
velocityof the previous scroll, likeonEnterForwardinstead ofonEnterBackward - Fix the
velocityand thesyncsmoothing ofonScroll()changing withengine.speed, likeengine.speed = .5doubling thevelocityand halving the speed ofsync: .5
- Fix the
- Time unit in seconds
- Fix looped animations, timers and timelines ending on the wrong loop, short of their end value, or without
onCompletewhen their total duration has decimals - Fix
engine.deltaTimereading milliseconds, like16.7instead of0.0167 - Fix
spring()without adurationsettling in about 21 seconds instead of 1.76 seconds - Fix
waapi.animate()reading its times in milliseconds - Fix a layout transition without a
durationplaying for 350 seconds instead of 350 milliseconds - Fix a timer or an animation with a
delaynot completing on a seek to itsduration - Fix
utils.damp()taking itsdeltaTimein milliseconds, likeutils.damp(0, 100, .016, .5)giving0.08instead of55.07 - Fix the
velocity,minVelocityandmaxVelocityof a draggable reading px per millisecond, like the defaultmaxVelocityreading50instead of50000 - Fix two timeline children that start at the same time both writing the property
- Fix
tl.sync()of a nativeAnimationlasting 1000 times its duration - Fix the overshoot of a released draggable lasting 1 second instead of 1 ms
- Fix the
syncsmoothing ofonScroll()jumping to the scroll position in one frame
- Fix looped animations, timers and timelines ending on the wrong loop, short of their end value, or without
- Timer
- Fix a timer with
duration: 0and adelaynever callingonBeginandonComplete, likecreateTimer({ duration: 0, delay: 100 })that now calls them at the end of its delay - Fix
reverse(),play()andalternate()inside a loop callingonLoop, and on a timeline thecall()at its end - Fix the
deltaTimeof timers reading a huge negative value on the first frames, then the previous frame instead of the current one - Fix the
deltaTimeof timers with aframeRatereading one frame late, like16instead of100in the firstonUpdateof aframeRate: 30timer after a 100 ms frame - Fix a playing timer, animation or timeline losing time when its
speedorengine.speedchanges, like an animation moving 520 ms in one second withspeedassigned in the middle of each frame at 60 fps - Fix
currentTime,progress,iterationCurrentTime,iterationProgressandcurrentIterationcallingonPausewhen assigned on a playing timer, animation or timeline, liketimer.currentTime = 500callingonPauseonce while the timer keeps playing.reverse(),play()andalternate()withloop: truehad the same bug, likereverse()at250of a playing1000ms animation - Fix
reverse(),play()andalternate()on a playing timer, animation or timeline losing the time since the last frame, like an animation moving back 1 ms instead of 16.7 ms on the frame after areverse()called 1 ms before that frame at 60 fps - Fix
onBeforeUpdate,onUpdateandonRendernot running when a timer, an animation or a timeline moves back to its start, likeseek(0)afterseek(200)onx: 100, duration: 400settingxto0without callingonUpdate.deltaTimenow reads that move, like-200 - Fix the
deltaTimeof a timer, an animation or a timeline keeping the value of the last frame afterrestart()orreset(), like16instead of0during the delay of an animation restarted at 60 fps reverse()andalternate()on a completed timer, animation or timeline, andplay()on one that completed reversed, now callonBeforeUpdate,onUpdateandonRenderat once, as they do in progress, likereverse()afterseek(100)onx: 100, duration: 100callingonUpdateinstead of no callback
- Fix a timer with
- Targets
- Fix the other transforms of an element no longer updating after
utils.remove()removes one of its transform properties
- Fix the other transforms of an element no longer updating after
- Three.js adapter
- Fix target detection and
getInstances()when an application loads multiple copies of Three.js - Fix a
visible: falsetween undone by a scale or opacity animation of the same mesh - Fix errors on every render after deleting an animated
BatchedMeshinstance
- Fix target detection and
- splitText
- Fix a lines split dropping the space next to a
<br>that does not break the line, likeAnimation <br>enginewith a hidden<br>giving the lineAnimationengineinstead ofAnimation engine
- Fix a lines split dropping the space next to a
- scrambleText
- Fix
scrambleText()ignoring thedelayof its animation
- Fix
- Scope
- Fix an error thrown in a scope callback leaving the scope active
- TypeScript
- Fix
utils.randomPick()result types, likenumberinstead ofstring | numberforutils.randomPick([1, 2, 3]) - The
delayof theScrambleTextTweentype is now optional
- Fix
An animate()-only bundle is 13.3 KB gzipped (12.3 KB in 4.5), the full bundle 45.4 KB (40.9 KB in 4.5).
formatjs_intl_datetimeformat_calendars: 1.0.3
1.0.3 (2026-12-01)
- The following workspace dependencies were updated
- dependencies
- formatjs_intl_datetimeformat bumped from 1.1.2 to 1.2.0
- dependencies
@formatjs/unplugin: 1.3.3
1.3.3 (2026-12-01)
- The following workspace dependencies were updated
- dependencies
- @formatjs/cli-lib bumped to 10.6.2
- dependencies
formatjs_intl_hermes: 0.4.4
0.4.4 (2026-12-01)
- The following workspace dependencies were updated
- dependencies
- formatjs_intl_datetimeformat bumped from 1.1.2 to 1.2.0
- formatjs_intl_datetimeformat_calendars bumped from 1.0.2 to 1.0.3
- dependencies
formatjs_temporal: 2.0.3
2.0.3 (2026-12-01)
- The following workspace dependencies were updated
- dependencies
- formatjs_intl_datetimeformat_calendars bumped from 1.0.2 to 1.0.3
- dependencies
formatjs_cli: 1.13.2
1.13.2 (2026-12-01)
- macOS Apple Silicon:
formatjs_cli-darwin-arm64 - Linux ARM64:
formatjs_cli-linux-arm64 - Linux x86_64:
formatjs_cli-linux-x64 - Windows x64:
formatjs_cli-win32-x64.exe
# macOS (Apple Silicon)
curl -LO https://github.com/formatjs/formatjs/releases/download/formatjs_cli_v1.13.2/formatjs_cli-darwin-arm64
chmod +x formatjs_cli-darwin-arm64
sudo mv formatjs_cli-darwin-arm64 /usr/local/bin/formatjs
# Linux
curl -LO https://github.com/formatjs/formatjs/releases/download/formatjs_cli_v1.13.2/formatjs_cli-linux-x64
chmod +x formatjs_cli-linux-x64
sudo mv formatjs_cli-linux-x64 /usr/local/bin/formatjs
# Linux ARM64
curl -LO https://github.com/formatjs/formatjs/releases/download/formatjs_cli_v1.13.2/formatjs_cli-linux-arm64
chmod +x formatjs_cli-linux-arm64
sudo mv formatjs_cli-linux-arm64 /usr/local/bin/formatjs
# Windows x64 (PowerShell)
curl.exe -LO https://github.com/formatjs/formatjs/releases/download/formatjs_cli_v1.13.2/formatjs_cli-win32-x64.exe
Verify the checksums:
curl -LO https://github.com/formatjs/formatjs/releases/download/formatjs_cli_v1.13.2/checksums.txt
shasum -a 256 -c checksums.txt