I'm working with the scrolltrigger and smooth scrollbar js. In my demo below, as I resize my browser's height, all the sections will remain the same height as it was initially set (until you refresh), but the srolltrigger element changes its positions as if I've scrolled. In this demo the second and third h1 element changes the position as you resize the window height, but I don't want them to... Is there any way to stop this?
PS :To see the problem, I think you need to go to the codepen full screen by clicking on edit on codepen.
Thanks in advance!