From e73c4db528c87ecf5df9d85a1182ec53c443ed5c Mon Sep 17 00:00:00 2001 From: A1300399510 Date: Mon, 25 Nov 2024 12:28:52 +0800 Subject: [PATCH] no message --- css/index.css | 3 ++- css/index.less | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/css/index.css b/css/index.css index 95be967..8005b74 100644 --- a/css/index.css +++ b/css/index.css @@ -153,7 +153,8 @@ transition: transform 0.5s ease; } .fate .title .btn .icon.rotate { - transform: rotate(360deg); + transform: rotate(var(--rotation, 0deg)); + /* 使用CSS变量 */ } .fate .list { justify-content: space-between; diff --git a/css/index.less b/css/index.less index 994e830..64e8da1 100644 --- a/css/index.less +++ b/css/index.less @@ -177,7 +177,7 @@ transition: transform 0.5s ease; &.rotate { - transform: rotate(360deg); + transform: rotate(var(--rotation, 0deg)); /* 使用CSS变量 */ } } }