Skip to content

Commit 1db9e15

Browse files
authored
Getting startAt
Getting startAt config and using for current
1 parent f45ee83 commit 1db9e15

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/tweens/builders/NumberTweenBuilder.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ var NumberTweenBuilder = function (parent, config, defaults)
4545

4646
var from = GetValue(config, 'from', 0);
4747
var to = GetValue(config, 'to', 1);
48+
var current = GetValue(config, 'startAt', from);
4849

4950
var targets = [ { value: from } ];
5051

@@ -78,7 +79,7 @@ var NumberTweenBuilder = function (parent, config, defaults)
7879
);
7980

8081
tweenData.start = from;
81-
tweenData.current = from;
82+
tweenData.current = current;
8283
tweenData.to = to;
8384

8485
data.push(tweenData);

0 commit comments

Comments
 (0)