In my previous inquiry about dynamically adding and removing divs on scroll, I was unable to find a satisfactory solution among the responses provided. However, I decided to take matters into my own hands and attempted to implement it myself.
My approach involved detaching the previous div tag from the container and appending a new div tag when the scroll position reached between 500 and 600. Despite successfully achieving this functionality, I encountered an issue with the scrollLeft property of the container. After deleting and appending blocks, the left position would change, causing a blinking effect when forcibly scrolling to the left at a set point of scrollleft:100.
How can I prevent this blinking effect when scrolling to the left side forcefully? Here is a link to the jsfiddle for reference.