baptistebriel / smooth-scrolling

smooth scrolling and parallax effects on scroll
MIT License
613 stars 75 forks source link

My Footer is cut off (works after resize) #77

Closed regenrek closed 6 years ago

regenrek commented 6 years ago

Hi,

I have a strange problem on this Site: http://www.ide.co.at/yachting/ When the page initial loads the footer gets cut off. After I resize the page the footer is shown. This behaviour shows up with smooth scroll enabled. Any Ideas to solve this?

https://i.imgur.com/wPuPR3s.png

Regards

baptistebriel commented 6 years ago

Hi @regenrek, I believe this is due to an image being loaded after the first resize, so the content height to scroll isn't the same anymore. Try passing preload: true in the options.

regenrek commented 6 years ago

Thank you! This was a great hint.