mzx16822 6 年之前
父節點
當前提交
5c6bed0cc4
共有 2 個文件被更改,包括 9 次插入1 次删除
  1. 1 1
      public/h5/datigame/css/main.css
  2. 8 0
      public/h5/datigame/js/common.js

+ 1 - 1
public/h5/datigame/css/main.css

@@ -430,7 +430,7 @@ background-color:#009688;
   border-radius: .8rem 0 0 .8rem/.8rem 0 0 .8rem;
   background: #ffffff;
 }
-
+ 
 .text-circle {
   position: absolute;
   display:flex;

+ 8 - 0
public/h5/datigame/js/common.js

@@ -189,6 +189,14 @@ common={
 	                leftContent.setAttribute('style', 'transform: rotate(' + _this.data.angle + 'deg)')
 	            }
 	        }
+	        $(".text-circle").removeClass("rubberBand");
+	        $(".text-circle").removeClass("animated");
+	        if(_this.data.sum<4){
+
+	        	$(".text-circle").addClass("rubberBand");
+	        	$(".text-circle").addClass("animated");
+	        }
+	        
 	        if (_this.data.sum < -1) {
 	        	if(!_this.data.isAnswer)
 	           	_this.Answer();