I have some panels where i snap and animate the inner content.
When the use leaves a panel, there should be also a fade out animation before scrolling to the next panel.
But I can't figure out how to do (and wait) the end animation before scrolling to the next panel.
Can someone help me please?
See the Pen qBXaQyq by tobias-keller (@tobias-keller) on CodePen
Hello and welcome to the forums @Tobias Keller
I guess you would have to add a delay to the ScrollTo-tween to make that sort of thing possible.
Then again, you would have to make sure, that users wouldn't be able to keep scrolling for the time of the delay or they could eventually trigger another ScrollTo in between; technically you could set the body's overflow to hidden when the function gets called and back to normal in the onComplete callback of the tween - b