From 2227cf70a580728aac2e6142b0dd846d76d54ddd Mon Sep 17 00:00:00 2001 From: libccy Date: Mon, 30 May 2016 23:50:47 +0800 Subject: [PATCH] line --- game/game.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/game/game.js b/game/game.js index e90301ba1..2dacdc4ff 100755 --- a/game/game.js +++ b/game/game.js @@ -15576,7 +15576,7 @@ node.style.transitionDuration=(total/3000)+'s'; node.style.left=from[0]+'px'; node.style.top=from[1]+'px'; - node.style.backgroundColor='rgba('+color.toString()+','+opacity+')'; + node.style.background='linear-gradient(transparent,rgba('+color.toString()+','+opacity+'),rgba('+color.toString()+','+opacity+'))'; var dy=to[1]-from[1]; var dx=to[0]-from[0]; var deg=Math.atan(Math.abs(dy)/Math.abs(dx))/Math.PI*180; @@ -15609,6 +15609,7 @@ node.style.transform='rotate('+(-deg)+'deg) scaleY(1)'; node.addEventListener('webkitTransitionEnd',function(){ setTimeout(function(){ + if(node.classList.contains('removing')) return; node.delete(); },total/3); });