Browse Source

修改动画颜色

Michael Wang 4 years ago
parent
commit
db3a4b550b

+ 2 - 4
src/features/student/inspect/MarkDrawTrack.vue

@@ -103,18 +103,16 @@ export default defineComponent({
   pointer-events: none;
 }
 .score-animation {
-  animation: 2s ease-in-out 0s infinite alternate change_color;
+  animation: 2s ease-in-out 0s infinite alternate change_size;
 }
 
-@keyframes change_color {
+@keyframes change_size {
   from {
-    color: red;
     font-size: 2em;
     margin-top: -100px;
     margin-left: -100px;
   }
   to {
-    color: black;
     font-size: 4em;
     margin-top: -80px;
     margin-left: -80px;

+ 2 - 2
src/features/student/studentTrack/MarkDrawTrack.vue

@@ -103,10 +103,10 @@ export default defineComponent({
   pointer-events: none;
 }
 .score-animation {
-  animation: 2s ease-in-out 0s infinite alternate change_color;
+  animation: 2s ease-in-out 0s infinite alternate change_size;
 }
 
-@keyframes change_color {
+@keyframes change_size {
   from {
     color: red;
     font-size: 2em;