优化抽奖

master
Lee 2022-09-11 15:08:25 +08:00
parent 8160ff3119
commit 9a86ec0eb0
2 changed files with 3 additions and 1 deletions

View File

@ -248,7 +248,6 @@
top: 1.2rem; top: 1.2rem;
margin-left: -2.2rem; margin-left: -2.2rem;
z-index: 9; z-index: 9;
transition: all 3s;
} }
.pointer{ .pointer{

View File

@ -32,11 +32,14 @@ jQuery(function($){
}else if(98<ran<=100){ }else if(98<ran<=100){
var needNum= 360*4 //选取需求数字 var needNum= 360*4 //选取需求数字
} }
$('.turntable').css({transition: 'all 3s'});
$('.turntable').css({transform: 'rotate('+needNum+'deg)'}); $('.turntable').css({transform: 'rotate('+needNum+'deg)'});
} }
setTimeout(function(){ setTimeout(function(){
$('.pull-bg').addClass('show'); $('.pull-bg').addClass('show');
$('.result-tips').addClass('show'); $('.result-tips').addClass('show');
$('.turntable').css({transition: 'all 0s'});
$('.turntable').css({transform: 'rotate(0)'});
},3000) },3000)
}); });
// 关闭弹窗 // 关闭弹窗