fx

basic dom effects

npm install fx
1 downloads in the last week
4 downloads in the last month

fx

basic dom effects

This library works in conjunction with any css transitions you are using. It does not perform simulated animations in javascript. You must specify the transitions for elements using css3 transitions. This library just fixes some of the quirks when trying to use these transitions in specific ways.

example

var fx = require('fx');
var element = document.querySelector('#container');

fx.slideUp(element);
#content {
    transition: height 0.5s ease;
}

api

.slideUp(element);

.slideDown(element);

npm loves you