- newOffset = Math.max(-this.dashOffsetTotal, this.autoplayRing.getAttribute('stroke-dashoffset') - this.chunkSize)
- this.autoplayRing.setAttribute('stroke-dashoffset', newOffset)
+ const strokeDashOffset = parseInt(this.autoplayRing.getAttribute('stroke-dashoffset'), 10)
+ newOffset = Math.max(-this.dashOffsetTotal, strokeDashOffset - this.chunkSize)
+ this.autoplayRing.setAttribute('stroke-dashoffset', '' + newOffset)