Skip to content

Commit f7b6b35

Browse files
committed
Added progress float.
1 parent 59787a1 commit f7b6b35

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

v3/src/animation/AnimationFrame.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ var AnimationFrame = function (index, frame, duration, onUpdate)
1818
// Additional time (in ms) this frame should appear for - added onto the msPerFrame
1919
this.duration = duration;
2020

21+
// What % through the animation progress is this frame?
22+
this.progress = 0;
23+
2124
// Callback if this frame gets displayed
2225
this.onUpdate = onUpdate;
2326
};

0 commit comments

Comments
 (0)