mirror of
https://github.com/jquery/jquery.git
synced 2026-02-01 08:55:55 -05:00
Revert "Effects: Remove additional parameters of easings"
This reverts commit b7a7dea95f.
Fixes #3064
This commit is contained in:
@@ -29,12 +29,17 @@ Tween.prototype = {
|
||||
Tween.propHooks._default.get( this );
|
||||
},
|
||||
run: function( percent ) {
|
||||
var hooks = Tween.propHooks[ this.prop ];
|
||||
var eased,
|
||||
hooks = Tween.propHooks[ this.prop ];
|
||||
|
||||
this.pos = this.options.duration ?
|
||||
jQuery.easing[ this.easing ]( percent ) :
|
||||
percent;
|
||||
this.now = ( this.end - this.start ) * this.pos + this.start;
|
||||
if ( this.options.duration ) {
|
||||
this.pos = eased = jQuery.easing[ this.easing ](
|
||||
percent, this.options.duration * percent, 0, 1, this.options.duration
|
||||
);
|
||||
} else {
|
||||
this.pos = eased = percent;
|
||||
}
|
||||
this.now = ( this.end - this.start ) * eased + this.start;
|
||||
|
||||
if ( this.options.step ) {
|
||||
this.options.step.call( this.elem, this.now, this );
|
||||
|
||||
Reference in New Issue
Block a user