Closed dhruveonmars closed 4 years ago
My first guess would be that your site (the body) isn't actually scrolling and you're instead scrolling inside a container. Is that the case?
It's also possible that images or other assets are changing the position of the element. Try resizing the browser to see if that re-render fixes the issue. If yes you can use instance.calculate()
and instance.update()
after DOMContentLoaded
.
Ah yeah, my body is set to be 100% of the screen height, and then there's an inner wrapper that's used. I've commented the inner wrapper out for and it works 🥳.
Weird how it was working at some point before though, and I've always had that inner wrapper and body structure.
Thanks!
I have the following code;
I have this code at the bottom of my page, with some other scripts before closing the body tag, however it doesn't seem to be working. I see the
outside
console log, when the page loads, but it doesn't show up again. And theinside
never shows up. Wondering if any css or other js could be causing an issue? As I'm sure this was working before, but even when I comment out all my other js/js libraries it doesn't work.This is the html markup for that item;
Any help is greatly appreciated