From 6e1fad7b8b7dfbbd003b8e15d1b757a1ec5be191 Mon Sep 17 00:00:00 2001 From: dabai Date: Wed, 6 Jul 2022 02:06:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=87=91=E5=B8=81=E5=8A=A8?= =?UTF-8?q?=E7=94=BB=E8=B0=83=E7=94=A8=E6=96=B9=E5=BC=8F=E3=80=82=E7=A1=AE?= =?UTF-8?q?=E4=BF=9Dcss=E6=A3=80=E6=B5=8B=E4=B8=8D=E4=BC=9A=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- exhibition/js/money.less | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/exhibition/js/money.less b/exhibition/js/money.less index f06787bd..253edf51 100644 --- a/exhibition/js/money.less +++ b/exhibition/js/money.less @@ -1,5 +1,6 @@ .addMoneyAnim { - background: url('https://gw.alipayobjects.com/zos/rmsportal/fseEOKMDOXOieJiHKuQg.png') no-repeat; + background: url("https://gw.alipayobjects.com/zos/rmsportal/fseEOKMDOXOieJiHKuQg.png") + no-repeat; background-size: 420px 104px; width: 52px; height: 52px; @@ -9,10 +10,14 @@ .addMoneyFrame(@one, @frame, @i: 0, @name: 0%) when (@i =< @frame) { .addMoneyFrame(@one, @frame, @i + 1, (100% / @frame * (@i + 1))); @{name} { - background-position: -(mod(@i, @one) * 52px) -(floor(@i / @one)*52px); + background-position: -(mod(@i, @one) * 52px) - (floor(@i / @one) * 52px); } } -@keyframes rotateMoney { +@frameContent: { .addMoneyFrame(8, 15); -} \ No newline at end of file +}; + +@keyframes rotateMoney { + @frameContent(); +}