Browse Source

Add inverse repeats

feature/coffeescript
Sven Slootweg 8 years ago
parent
commit
3d35f95c15
  1. 4
      compiled/radium.js
  2. 3
      radium/engine.ease.coffee

4
compiled/radium.js

@ -729,6 +729,10 @@
if (current_frame >= this.start_frame + this.duration) {
if (this.infinite) {
this.start_frame = current_frame;
if (this.invert_repeat) {
this.start = this.start + this.change;
this.change = -this.change;
}
return this.value = this.start;
} else if (this.next != null) {
return this.goToNext();

3
radium/engine.ease.coffee

@ -117,6 +117,9 @@ class Ease
if current_frame >= @start_frame + @duration
if @infinite
@start_frame = current_frame
if @invert_repeat
@start = @start + @change
@change = -@change
@value = @start
else if @next?
@goToNext()

Loading…
Cancel
Save