JavaScript
Switch branches/tags
Latest commit 1c102fb May 22, 2014 @jsw0528 jsw0528 fix the indent
Permalink
Failed to load latest commit information.
examples fix demo Dec 27, 2012
tests 1.1.0, upgrade to spm@3x May 15, 2014
.gitignore 1.1.0, upgrade to spm@3x May 15, 2014
.travis.yml update travis.yml May 15, 2014
HISTORY.md add HISTORY.md May 15, 2014
Makefile upgrade to spm2 May 9, 2013
README.md Add a Bitdeli badge to README Nov 4, 2013
index.js 1.1.0, upgrade to spm@3x May 15, 2014
package.json fix the indent May 21, 2014

README.md

Easing


Build Status

Easing 是动画的平滑函数扩展包。由于 jQuery 自带的比较少,通过这个包可以增加更多平滑函数。


使用说明

直接 require 就行,默认会把平滑函数混入到 jQuery 中。

require('easing');

$('#demo').animate({
        width: 'toggle',
        height: 'toggle'
    }, {
    duration: 5000,
    specialEasing: {
        width: 'linear',
        height: 'elasticBoth' // 直接使用扩展的平滑函数名就好
    },
    complete: function() {
        $(this).after('<div>Animation complete.</div>');
    }
});

Bitdeli Badge