From 2e9b87f019af03076acfa145fe6f290f1e402ca6 Mon Sep 17 00:00:00 2001 From: wdssmq Date: Tue, 10 Oct 2023 12:52:04 +0800 Subject: [PATCH] =?UTF-8?q?fix(danmaku).=20animation-name=20=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E7=9A=84=E6=A0=87=E5=87=86=E5=80=BC=E4=B8=8D=E5=BA=94?= =?UTF-8?q?=E8=AF=A5=E5=8A=A0=E5=BC=95=E5=8F=B7=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit animation-name - CSS:层叠样式表 | MDN https://developer.mozilla.org/zh-CN/docs/Web/CSS/animation-name --- src/css/danmaku.less | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/css/danmaku.less b/src/css/danmaku.less index b88eee8..6b3f93e 100644 --- a/src/css/danmaku.less +++ b/src/css/danmaku.less @@ -12,7 +12,7 @@ user-select: none; cursor: default; white-space: nowrap; - text-shadow: .5px .5px .5px rgba(0, 0, 0, .5); + text-shadow: 0.5px 0.5px 0.5px rgba(0, 0, 0, 0.5); &--demo { position: absolute; visibility: hidden; @@ -24,7 +24,7 @@ transform: translateX(100%); &.dplayer-danmaku-move { will-change: transform; - animation-name: 'danmaku'; + animation-name: danmaku; animation-timing-function: linear; animation-play-state: paused; } @@ -42,7 +42,7 @@ visibility: hidden; &.dplayer-danmaku-move { will-change: visibility; - animation-name: 'danmaku-center'; + animation-name: danmaku-center; animation-timing-function: linear; animation-play-state: paused; } @@ -55,4 +55,4 @@ visibility: visible; } } -} \ No newline at end of file +}