Jump to content
GreenSock

RIOTCODE

Horizontall Gallery scrolling in fullscreen modal

Moderator Tag
Go to solution Solved by SteveS,

Recommended Posts

Hi, 

Is it possible to have horizontall gallery scrolling (to the left on the mousewheel) with pining in the fullscreen modal? 

Scrolltrigger seems not to work inside modal

Link to comment
Share on other sites

Definitely possible. You'd have to post a demo for us to understand the full context of the situation.

Link to comment
Share on other sites

Hi there - thanks for the demo.

 

We prefer vanilla JS demos here that are stripped back to the absolute essentials. It's much easier for people to assist and diagnose the issue without frameworks muddying the waters. Could you strip this back a bit for us?

 

Thanks so much.

Link to comment
Share on other sites

That was really nice of you to write up a full solution Steve! Thanks

Link to comment
Share on other sites

(also hey! Shiny new mod badge!)

  • Haha 1
Link to comment
Share on other sites

Thanks Cassie. Do you know why in my demo there's a bit of stutter on the horizontal scroll? I imagine it's because the pintype on inner scroll containers is transform by default.

Link to comment
Share on other sites

I don't see the stutter here? buttery smooth for me (chrome, mac)

Link to comment
Share on other sites

Odd. On Firefox I was definitely getting some stutter. I can't replicate it for some reason. Woe is web animations.

  • Haha 1
Link to comment
Share on other sites

Than you Steve, I tried to implement but without a luck. I wrote you PM if you would take a look it would be awesome ;)

Link to comment
Share on other sites

Steve's welcome to answer but we do try to keep discussions public as it helps more other people that way. 💚

(Unless you can't divulge parts of projects publicly of course - then go ahead!)

  • Like 1
Link to comment
Share on other sites

He was having some issues due to a combination of factors specific to his setup. NextJS + specific modal component + combining with framer motion. In the end my provided demo was the correct solution. It just had to be refit to a pre-existing codebase.

  • Like 1
Link to comment
Share on other sites

Thanks for taking the time to help Steve, champion

Link to comment
Share on other sites

Steve is a Super Hero, true Tony Stark of GSAP ;) 

  • Like 1
  • Haha 1
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.
×