Modular JS animation library
⚠️ API is unstable, please install package with--exact
flag.
$ npm install --save --exact framez
# OR
$ yarn add --exact framez
Import required modules:
-
Import as es6 modules in webpack 2 or rollup.js (smaller result bundle)
import { animate, easeInOut, updateStyles, withEase, withTime } from 'framez'
Or as standalone library in browser (available from
framez
global variable)<script src="/node_modules/framez/index.umd.js"></script> <script> (function () { var { animate, easeInOut, updateStyles, withEase, withTime } = framez })() </script>
-
Then animate with combination of functions:
const fadeOut = (target) => (
animate(
withTime(1000),
withEase(easeInOut(2)),
updateStyles(target, { opacity: 0 })
).start()
)
fadeOut('body').then(() => console.log('done!'))
coming soon
coming soon
coming soon
- Anime.js a lightweight JavaScript animation library.
- Animate Plus a CSS and SVG animation library for modern browsers.
- Velocity.js — Accelerated JavaScript animation.
- BezierEasing provides Cubic Bezier Curve easing which generalizes easing functions (ease-in, ease-out, ease-in-out, ...any other custom curve) exactly like in CSS Transitions.
MIT © John Grishin