diff --git a/xiaomusic/static/iwebplayer/iwebplayer.html b/xiaomusic/static/iwebplayer/iwebplayer.html index b6a372d..1bc0250 100644 --- a/xiaomusic/static/iwebplayer/iwebplayer.html +++ b/xiaomusic/static/iwebplayer/iwebplayer.html @@ -625,14 +625,30 @@ justify-content: center; overflow: hidden; } + + @keyframes marquee-loop { + 0% { transform: translateX(0); opacity: 0; } + 5%, 15% { transform: translateX(0); opacity: 1; } + 80%, 90% { transform: translateX(var(--scroll-dist)); opacity: 1; } + 95%, 100% { transform: translateX(var(--scroll-dist)); opacity: 0; } + } + .marquee-scroll { + animation: marquee-loop 6s linear infinite; + } + .now-playing-title { font-size: 19px; font-weight: bold; white-space: nowrap; - text-overflow: ellipsis; overflow: hidden; width: 100%; - text-align: center; + position: relative; + display: flex; + justify-content: center; + } + .np-title-text { + display: inline-block; + white-space: nowrap; } .controls { display: flex; @@ -1289,6 +1305,7 @@ @@ -1394,6 +1411,9 @@ @@ -1434,11 +1454,17 @@
-