hello
i have 2 questions
1. this landing is about 3.5mb weight which is not too much. why sometimes when i open it i have to wait about 1-2 seconds to "load" it? looks like it loading the gsap script, its weight about 60kb so why its lagging???
2. as u can see i have onLeave and onEnterback callbacks for the sections(example 1 and 2 sections)
if you look closer the scrolling continues while onleave animations is still in progress.
i want to make reveal and hide animations looks sm
Hye @artstyle
You could somewhat achieve what you intend, by setting the overflow of your body to hidden in your callbacks and setting it back by e.g. clearing the props in onComplete- and onReverseComplete- callbacks for your animation-timelines. This way you would prevent users to keep scrolling for the time the timeline plays.
This comes with problems though, that are ( if I am not mistaken ) caused by how scrolling is taken care of in browsers.
You'll not