This is very simple to understand it just goes to the place where it should be and then just calculates Your scroll x - its position and if it doesnt match up it just hide's it untill it will be shown