优化选择食材动效

This commit is contained in:
Dragon
2023-06-27 14:16:41 +08:00
parent 609dea5884
commit 9974ad913c
3 changed files with 10 additions and 6 deletions

View File

@@ -181,6 +181,7 @@ body {
padding-left: 0.6266666667rem;
}
.wrap .game-area .select-time ul li {
transition: all, 0.2s;
position: relative;
z-index: 99;
width: 1.84rem;

View File

@@ -291,6 +291,7 @@ body {
padding-left: px2rem(47);
li {
transition: all, 0.2s;
position: relative;
z-index: 99;
width: px2rem(138);
@@ -1282,14 +1283,14 @@ body {
font-size: px2rem(26);
font-weight: bold;
color: white;
white-space:nowrap;
white-space: nowrap;
}
.mine-info {
flex: 1;
display: flex;
align-items: center;
white-space:nowrap;
white-space: nowrap;
img {
width: px2rem(80);
@@ -1314,7 +1315,7 @@ body {
font-size: px2rem(26);
font-weight: bold;
color: #fff;
white-space:nowrap;
white-space: nowrap;
b {
color: #fff;

View File

@@ -82,6 +82,7 @@ const getUserPieceNum = () => {
success (res) {
if (res.code === 200) {
$('.info-bottom').find('.fragment span').html(res.data.diamonds)
$('.wrap .info-bottom .info-wrap .diamond-num span').text(res.data.diamonds)
myFragment = res.data.diamonds;
} else {
return toastMsg(res.message)
@@ -704,8 +705,9 @@ const sendUserDrawInfo = (itemId, num, tais) => {
tais.data('total-num').number = parseInt(tais.data('total-num').number) + fragmentNum
tais
.stop(true, true)
.animate({ scale: 1.1 }, 200)
.animate({ scale: 1 }, 200, function () {
.animate({ scale: 1.4,rotate:-30,}, 50)//skew(10deg, 10deg)
.animate({ scale: 1.4,rotate:30,}, 20)//skew(10deg, 10deg)
.animate({ scale: 1,rotate:0 }, 200, function () {
if (lock) {
tais.find('.select-num').html('+' + tais.data('total-num').number).hide().fadeIn(200)
}