New Features
- [API] All
utils
,svg
,text
andeases
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 replacelerp(start, end, amount, clock)
Breaking Changes
- [Utils] Remove the clock parameter from
lerp()
(use the framerate dependent damping functiondamp()
instead) - [Utils] Remove
interpolate()
(use the simplifiedlerp()
instead) - [Bundle] Replace
lib/
withdist/bundles/
anddist/modules/
- [Bundle] Remove
lib/anime.iife.min.js
(usedist/bundles/anime.umd.min.js
instead)
Bug Fixes
- [Draggable] Fix touch dragging with Shadow DOM support (#1067) @wessmeister
- [Types] Add @types/node dependency for type checking (#1069) @Yukiniro
Changes
- [Utils]
stagger()
has been moved to/utils
, still available globally viaimport { stagger } from 'animejs'
- [Build] Simplify build scripts:
build
,dev
,dev:test
,test:browser
,test:node
,open:examples
Deprecated
- [Text]
text.split()
deprecated, usesplitText()
instead
You can test it with
npm install animejs@beta