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变量 */ } } }