npm animejs 4.2.0-beta.0
v4.2.0-beta.0

7 days ago

New Features

  • [API] All utils, svg, text and eases objects and methods are now exported by the main module:
    • import { animate, clamp, inOut, splitText, morphTo } from 'animejs'
  • [API] All modules can now be imported individually:
    • import { animate } from 'animejs/animation'
    • import { createTimer } from 'animejs/timer'
    • import { createTimeline } from 'animejs/timeline'
    • import { createAnimatable } from 'animejs/animatable'
    • import { createDraggable } from 'animejs/draggable'
    • import { createScope } from 'animejs/scope'
    • import { onScroll } from 'animejs/events'
    • import { createSpring } from 'animejs/spring'
    • import { engine } from 'animejs/engine'
    • import * as easings from 'animejs/easings'
    • import * as utils from 'animejs/utils'
    • import * as svg from 'animejs/svg'
    • import * as text from 'animejs/text'
    • import * as waapi from 'animejs/waapi'
  • [Utils] Add createSeededRandom() to generate pre-seeded pseudo-random functions
  • [Utils] Add damp() utils to replace lerp(start, end, amount, clock)

Breaking Changes

  • [Utils] Remove the clock parameter from lerp() (use the framerate dependent damping function damp() instead)
  • [Utils] Remove interpolate() (use the simplified lerp() instead)
  • [Bundle] Replace lib/ with dist/bundles/ and dist/modules/
  • [Bundle] Remove lib/anime.iife.min.js (use dist/bundles/anime.umd.min.js instead)

Bug Fixes

Changes

  • [Utils] stagger() has been moved to /utils, still available globally via import { stagger } from 'animejs'
  • [Build] Simplify build scripts: build, dev, dev:test, test:browser, test:node, open:examples

Deprecated

  • [Text] text.split() deprecated, use splitText() instead

You can test it with

npm install animejs@beta

Don't miss a new animejs release

NewReleases is sending notifications on new releases.