loop() { this.isOver = Math.abs(this.target - this.x) > 1; if(!this.isOver) return; this.update(this.target); this.table.style.transform = `translateX(${this.x}px)`; requestAnimationFrame(this.loop.bind(this)); }