diff options
author | Kruti Shah | 2012-06-27 12:42:02 -0700 |
---|---|---|
committer | Kruti Shah | 2012-06-27 12:42:02 -0700 |
commit | efdca7dd7aa521e03f5d34348bcf250ccb8505c5 (patch) | |
tree | 2a08d2929f2577cbc08258c490d93d23037dfef9 /js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js | |
parent | 37fd59d6574b4230df5ff8022e300d8d310c380d (diff) | |
parent | 50fba97d221041660f0757725ee46b3a6ceb3aa0 (diff) | |
download | ninja-efdca7dd7aa521e03f5d34348bcf250ccb8505c5.tar.gz |
Merge branch 'refs/heads/TimelineUberJD' into Timeline-local-kruti
Diffstat (limited to 'js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js')
-rw-r--r-- | js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js index 014d3f34..26ce526f 100644 --- a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js +++ b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js | |||
@@ -1063,8 +1063,12 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, { | |||
1063 | this.tweens[0].tweenData.tweenedProperties["height"] = this.animatedElement.offsetHeight + "px"; | 1063 | this.tweens[0].tweenData.tweenedProperties["height"] = this.animatedElement.offsetHeight + "px"; |
1064 | var animationDuration = Math.round(this.trackDuration / 1000) + "s"; | 1064 | var animationDuration = Math.round(this.trackDuration / 1000) + "s"; |
1065 | this.animationName = this.animatedElement.classList[0] + "_PositionSize"; | 1065 | this.animationName = this.animatedElement.classList[0] + "_PositionSize"; |
1066 | this.animationNamesString = this.animationName; | 1066 | if(this.animationNamesString.length == 0){ |
1067 | this.ninjaStylesContoller.setElementStyle(this.animatedElement, "-webkit-animation-name", this.animationName); | 1067 | this.animationNamesString = this.animationName; |
1068 | } else { | ||
1069 | this.animationNamesString = this.animationName + ", " + this.animationNamesString; | ||
1070 | } | ||
1071 | this.ninjaStylesContoller.setElementStyle(this.animatedElement, "-webkit-animation-name", this.animationNamesString); | ||
1068 | this.ninjaStylesContoller.setElementStyle(this.animatedElement, "-webkit-animation-duration", animationDuration); | 1072 | this.ninjaStylesContoller.setElementStyle(this.animatedElement, "-webkit-animation-duration", animationDuration); |
1069 | this.ninjaStylesContoller.setElementStyle(this.animatedElement, "-webkit-animation-fill-mode", "forwards"); | 1073 | this.ninjaStylesContoller.setElementStyle(this.animatedElement, "-webkit-animation-fill-mode", "forwards"); |
1070 | this.ninjaStylesContoller.setElementStyle(this.animatedElement, "-webkit-animation-iteration-count", 1); | 1074 | this.ninjaStylesContoller.setElementStyle(this.animatedElement, "-webkit-animation-iteration-count", 1); |