Linear easing function

feature/coffeescript
Sven Slootweg 10 years ago
parent 7afceec382
commit bca21d496b

@ -690,6 +690,7 @@
this.invert_repeat = invert_repeat;
this.next = next;
this.params = params;
this.linearNone = __bind(this.linearNone, this);
this.expoInOut = __bind(this.expoInOut, this);
this.expoOut = __bind(this.expoOut, this);
this.expoIn = __bind(this.expoIn, this);
@ -911,6 +912,10 @@
}
};
Ease.prototype.linearNone = function(time) {
return this.change * time / this.duration + this.start;
};
return Ease;
})();

@ -254,3 +254,6 @@ class Ease
else
return @change / 2 * (-Math.pow(2, -10 * (time - 1)) + 2) + @start
linearNone: (time) =>
return @change * time / @duration + @start

Loading…
Cancel
Save