https://github.com/kottenator/animatr
https://github.com/kottenator/animatr
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/kottenator/animatr
- Owner: kottenator
- Created: 2016-05-05T17:37:22.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-04-23T18:18:03.000Z (about 8 years ago)
- Last Synced: 2025-01-02T11:29:51.146Z (over 1 year ago)
- Language: JavaScript
- Size: 189 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Animatr
DOM/CSS-free animation/tween library
## Install dev version
```sh
git clone
npm install
```
## Build
### Unminified
Run `browserify` (standalone) + `babelify` + `exorcist` + `derequire`:
```sh
npm run build-js
# Equal to:
browserify src/easing.js -d -s animatr \
-t [ babelify --presets=babel-preset-es2015 ] | \
exorcist dist/easing.js.map | \
derequire > dist/easing.js
```
- `-s` (standalone): object in the global scope (window)
- `babelify`: Babel for Browserify
- `exorcist`: extract inline source map into file
- `derequire`: rename "require" entries to prevent AMD auto-detect
### Minified
Run `browserify` (standalone) + `babelify` + `minifyify` + `derequire`
```sh
npm run build-js-min
# Equal to:
browserify src/easing.js -d -s animatr \
-t [ babelify --presets=babel-preset-es2015 ] \
-p [ minifyify --output dist/easing.map.json --map=easing.map.json ] | \
derequire > dist/easing.js
```
- `-s` (standalone): object in the global scope (window)
- `babelify`: Babel for Browserify
- `minifyify`: minify JS source code
- `derequire`: rename "require" entries to prevent AMD auto-detect