Vue text cycle scrolls to the left

demo

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

Jan.08,2022
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b384f5-2c10e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b384f5-2c10e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?