
Kokku
-
Posts
4 -
Joined
-
Last visited
Content Type
Profiles
Forums
Store
FAQ
Showcase
Product
Blog
ScrollTrigger Demos
Downloads
Posts posted by Kokku
-
-
On 2/25/2021 at 9:44 PM, GreenSock said:
That'll clear all inline CSS properties of each tween's target as soon as each tween is done. That's probably not what you want. If you really want to clear everything at the end of the timeline:
gsap.timeline({ onComplete: () => gsap.set(".all-your-targets", {clearProps: true}) });
That's highly unusual, though. You do realize that'll revert any changes that were made by the animations, right?
I found this approach useful for animating a modal in, and then when the closing animation completes to revert the modal element to its original state so it can be opened again.
-
1
-
-
10 hours ago, GreenSock said:
Sorry about the confusion there - it was a regression in a recent version which should be fixed in next release which you can preview on CodePen at: https://assets.codepen.io/16327/GSDevTools3.min.js (you may need to clear your cache first). Better?
Working now! Thanks! I thought I was going crazy...
-
2
-
-
Hi,
It seems the id's of animations don't show up in the drop down menu... not even on the official demos like the one linked. Could not get it working on my local machine either. Is it broken or am I missing something here? 😅 Thanks.
See the Pen MEYdxr?editors=1010 by GreenSock (@GreenSock) on CodePen
Scrollable overlay
in GSAP
Posted
Hi!
I have made a scrollable overlay that transitions to show the page under it. I want the overlay to disappear when scrolled to bottom.
I have set it to trigger the animation on
start: 'top 1'
and it works great.I just can't understand why
Thanks!!
start: 'top top'
doesn't work - is it a bug or is there some logical explanation?See the Pen dyzjKzz by matias_autio (@matias_autio) on CodePen