arale-easing

1.1.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    3

Package Sidebar

Install

npm i arale-easing

Weekly Downloads

0

Version

1.1.0

License

none

Last publish

Collaborators

  • carlos121493
  • jaredleechn
  • kasinooya
  • pigcan
  • sehuo
  • yulongheli