code-surfer
Advanced tools
Comparing version 0.5.3 to 0.5.5
@@ -56,3 +56,2 @@ "use strict"; | ||
var center = middle; | ||
// debugger; | ||
@@ -104,2 +103,3 @@ var scaledContentHeight = contentHeight * scale; | ||
var step = { top: startY, scale: startScale }; | ||
var shouldAnimate = true; | ||
@@ -109,5 +109,8 @@ var tween = new _tween2.default.Tween(step).to({ top: endY, scale: scale }, duration).easing(_tween2.default.Easing.Circular.Out).onUpdate(function () { | ||
content.style.transform = "scale(" + step.scale + ")"; | ||
}).onComplete(function () { | ||
shouldAnimate = false; | ||
}).start(); | ||
function animate(time) { | ||
if (!shouldAnimate) return; | ||
requestAnimationFrame(animate); | ||
@@ -114,0 +117,0 @@ _tween2.default.update(time); |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "code-surfer", | ||
"version": "0.5.3", | ||
"version": "0.5.5", | ||
"private": false, | ||
@@ -47,3 +47,3 @@ "main": "dist/code-surfer.js", | ||
], | ||
"gitHead": "f316c3212382f27dc0f5a2c409418043b90726af" | ||
"gitHead": "9c8e1d9fadba8dbb0ab3bf7e4ef145cfcd26be86" | ||
} |
Sorry, the diff of this file is not supported yet
1007
39243
6