Gore Wang Posted September 21, 2020 Share Posted September 21, 2020 Hi, I'm using 3.5.1, and I find when I using `pinType: "transform",` and `markers: true,` at the same time. And will get error of `TypeError: Window.getComputedStyle: Argument 1 does not implement interface Element.`. ScrollTrigger.create({ ... pinType: "transform", markers: true, }) Link to comment Share on other sites More sharing options...
GreenSock Posted September 21, 2020 Share Posted September 21, 2020 Thanks for point that out - it's fixed in the next version. It would only happen if you DON'T specify a scroller, but I don't understand why you would ever choose pinType: "transform" without specifying a scroller. It's usually a bad idea to do that on the main viewport because browsers use a different thread for scrolling and you'll get jittery out-of-sync updates that way. I'm curious why you chose that. 2 Link to comment Share on other sites More sharing options...
Gore Wang Posted September 21, 2020 Author Share Posted September 21, 2020 Since I use "transform" at the parent container by some layout requirement, so I need pinType: "transform" instead of "fixed". I already figured out some way to change my layout to avoid this, thanks for your reply. Link to comment Share on other sites More sharing options...
ZachSaucier Posted September 21, 2020 Share Posted September 21, 2020 8 hours ago, Gore Wang said: I already figured out some way to change my layout to avoid this Would you mind sharing so others can benefit? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now