Commit 2663beae by 李伟康

commit 调整动画

1 parent 2ddd543e
...@@ -175,7 +175,7 @@ export default { ...@@ -175,7 +175,7 @@ export default {
box-sizing: border-box; box-sizing: border-box;
background: repeating-linear-gradient(to right, transparent 0% 50%, #56fefe 50% 51%); background: repeating-linear-gradient(to right, transparent 0% 50%, #56fefe 50% 51%);
background-size: 10px 1px; background-size: 10px 1px;
animation: move-dots-left 4s linear infinite; animation: move-dots-right 4s linear infinite;
.icon { .icon {
position: absolute; position: absolute;
left: -80px; left: -80px;
...@@ -217,7 +217,7 @@ export default { ...@@ -217,7 +217,7 @@ export default {
height: 4px; height: 4px;
background: repeating-linear-gradient(to right, transparent 0% 50%, #56fefe 50% 51%); background: repeating-linear-gradient(to right, transparent 0% 50%, #56fefe 50% 51%);
background-size: 10px 1px; background-size: 10px 1px;
animation: move-dots-left 4s linear infinite; animation: move-dots-right 4s linear infinite;
} }
} }
&:nth-child(4) { &:nth-child(4) {
...@@ -236,12 +236,12 @@ export default { ...@@ -236,12 +236,12 @@ export default {
} }
} }
} }
@keyframes move-dots-left { @keyframes move-dots-right {
0% { 0% {
background-position-x: 100px; background-position-x: 0;
} }
100% { 100% {
background-position-x: 0; background-position-x: 100px;
} }
} }
@keyframes move-dots-y { @keyframes move-dots-y {
...@@ -249,7 +249,7 @@ export default { ...@@ -249,7 +249,7 @@ export default {
background-position-y: 100px; background-position-y: 100px;
} }
100% { 100% {
background-position-x: 0; /* 调整这个值来改变动画的范围 */ background-position-x: 0;
} }
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!