Jump to content
Search Community

How can I encapsulate the ScrollTrigger ?

sagexiang test
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

  • Solution

Can you please provide a minimal demo (like a CodePen) that shows the animation of several simple colored <div> elements that you're wanting to simplify? It's difficult to understand what you're asking when we don't have anything to look at. Once we see some code, I'm sure we can offer some suggestions. 

 

You might want to look into gsap.registerEffect()

Link to comment
Share on other sites

  • 2 weeks later...
GreenSock 于 2022 年 9 月 30 日下午 12:03 说道:

您能否提供一个最小的演示(如 CodePen),显示您想要简化的几个简单彩色 <div> 元素的动画?当我们没有任何东西可看时,很难理解你在问什么。一旦我们看到一些代码,我相信我们可以提供一些建议。 

 

您可能想查看gsap.registerEffect()

Thank you~

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...