+
![]()
{{preName(item.name)}} {{item.userScore}}分 第{{(index % listData.length)+1}}名;
@@ -239,9 +239,9 @@
},
computed: {
animationCss() {
- return this.listData && this.listData.length > 6 ? {
+ return this.listData && this.listData.length > 0 ? {
// animationName: 'scroll',
- animationDuration: this.listData.length * 3 + 's',
+ animationDuration: (this.listData.length * 3 < 10 ? 10 : this.listData.length * 3) + 's',
animationTimingFunction: 'linear',
animationIterationCount: 'infinite'
} : {}
@@ -928,7 +928,7 @@
}
.animal-css {
- animation: scroll 40s linear infinite;
+ animation: scroll;
}
@keyframes scroll {