diff --git a/core/core-frontend/src/custom-component/scroll-text/Component.vue b/core/core-frontend/src/custom-component/scroll-text/Component.vue
index 529f9e3ca9..967be79680 100644
--- a/core/core-frontend/src/custom-component/scroll-text/Component.vue
+++ b/core/core-frontend/src/custom-component/scroll-text/Component.vue
@@ -1,7 +1,7 @@
@@ -140,6 +165,7 @@ const textStyle = computed(() => {
v-if="editMode == 'edit'"
:style="varStyle"
class="v-text"
+ ref="textOut"
@keydown="handleKeydown"
@keyup="handleKeyup"
>
@@ -197,15 +223,14 @@ const textStyle = computed(() => {
}
.marquee-txt {
display: inline-block;
- padding-left: 100%; /* 从右至左开始滚动 */
animation: marqueeAnimation var(--scroll-speed) linear infinite;
}
@keyframes marqueeAnimation {
0% {
- transform: translate(100%, 0);
+ transform: translate(var(--scroll-scale), 0);
}
100% {
- transform: translate(-50%, 0);
+ transform: translate(-100%, 0);
}
}