Jump to content
Search Community

Is it possible to use ScrollTrigger with a container that changes position using transforms?

nealwright test
Moderator Tag

Recommended Posts

I read this post, but couldn't find a solution that worked for me. I have a slightly more complicated scenario I am trying to create. Basically I'm hoping to create a site where scrolling up and down actually scrolls left and right but with some smooth scrolling. So far the best option I have found is the asscroll library using scrollerProxy, but this solution does have some strange issues such as the scroll position moving when resizing the browser.

 

So I'm curious if it might be possible to use the vertical scrollbar to horizontally transform a very wide fixed position div while still having ScrollTrigger successfully recognize divs and pin them correctly. So far I haven't had any luck with this, but figure it may be possible since asscroll uses transforming to achieve its smooth scrolling.

 

Does anyone know if this is possible? 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...