enhance(client): improve marquee

This commit is contained in:
syuilo 2022-07-05 16:16:13 +09:00 committed by Chloe Kudryavtsev
parent 2dc04068c1
commit 4059b91c0e

View file

@ -77,10 +77,16 @@ export default {
<style lang="scss" module> <style lang="scss" module>
.wrap { .wrap {
overflow: clip; overflow: clip;
animation-play-state: running;
&:hover {
animation-play-state: paused;
}
} }
.content { .content {
display: inline-block; display: inline-block;
white-space: nowrap; white-space: nowrap;
animation-play-state: inherit;
} }
.text { .text {
display: inline-block; display: inline-block;
@ -88,6 +94,7 @@ export default {
animation-timing-function: linear; animation-timing-function: linear;
animation-iteration-count: infinite; animation-iteration-count: infinite;
animation-duration: inherit; animation-duration: inherit;
animation-play-state: inherit;
} }
.paused .text { .paused .text {
animation-play-state: paused; animation-play-state: paused;