skrollr-css
write skrollr animations in a css-like syntax
a command-line tool
installation
$ npm install -g skrollr-css
usage
skrollr-css [source file?] [-o out file] [-w watch]' -v version -h this help text
Supports stdin and stdout, or specify files as arguments
Syntax
Write skrollr animations like css keyframes!
becomes
@ 30 100 }
This utility builds the animation into a javascript file which you can include with your webpage - run this after DOM ready
but before skrollr.init()
.
For example, after running $ skrollr-css src.css animation.js
, add this to your webpage:
api
var skrollrCss = var css = // ... a css string var animation = // a built javascript source string which will set the// animation data properties in the DOM
running the tests
there aren't any
contributors
- jden jason@denizac.org
license
ISC. (c) MMXIV jden jason@denizac.org. See LICENSE.md