davidtovt
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by davidtovt
-
-
I mean, there was a bug in my code and not in GSAP. I think everything is good now.
- 2
-
I found another bug. The offset of first section is always 0 and it not works correctly if we have content before the parallax sections, so we have to add the starting position to the sections.
const contentContainer = document.querySelector('.content-container');
if (currScroll > contentContainer.offsetTop + marker.offsetTop) {
-
Thank you very much!
- 1
-
@akapowl It's good for me, just I thought there is a better solution. I found an error, if I scroll down the page than refresh the page I get the following error:
Uncaught ReferenceError: Cannot access 'contentMarkers' before initializationYou can check here: https://cdpn.io/davidtovt/debug/dyzOOPw/bYMdypQgzZRr
Do you know how to fix this?
-
Hi!
I just want to use the 'right-content' div and insert the 'boxToShow' divs inside the 'contentMarker' divs. Can anyone help me?
See the Pen dyzOOPw by davidtovt (@davidtovt) on CodePen
Bouncing pinned and snapped section
in GSAP
Posted
Hello!
I made these pinned and snapped sections, but doesn't work correctly. Sometimes it gets stuck when I scroll fastly or it bounces or stops between two section.
I don't understand why, but on Codepen it's a little better than opening it in an HTML file.
How can I fix my code?
See the Pen wvqXjwe by davidtovt (@davidtovt) on CodePen