Jump to content
Search Community

Bug Report: ScrollTrigger pinType and markers

Gore Wang test
Moderator Tag

Recommended Posts

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,
})

 

截圖 2020-09-21 上午10.56.55.png

Link to comment
Share on other sites

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. 

  • Like 2
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...