in this demo, when you want to realize that the text scrolls to the left, the right side continues to scroll at the end of the scrolling, instead of waiting for the text scrolling to finish completely and then start scrolling again. There is a code in demo:
keyframes() {
const from = this.prefix("transform", `translateX(${this.$el.offsetWidth}px)`);
const to = this.prefix("transform", `translateX(-${this.$el.firstChild.offsetWidth}px)`);
const v = `@keyframes ${this.name} {
from { ${from} }
to { ${to} }
}`;
this.styleEl.innerHTML = v;
document.head.appendChild(this.styleEl);
},
Warehouse address
would like to ask the boss how to connect the beginning and end of the text, thank you