diff --git a/src/views/dataBoard/dataBoard.vue b/src/views/dataBoard/dataBoard.vue index 1816e0d..05ac2a2 100644 --- a/src/views/dataBoard/dataBoard.vue +++ b/src/views/dataBoard/dataBoard.vue @@ -56,9 +56,9 @@
-
- -
+ +
+
{{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 {