Jump to content
Search Community

Scrolltrigger - horizontal scroll - mobile version

Gigi1303 test
Moderator Tag

Go to solution Solved by Cassie,

Recommended Posts

Hi guys, I'm experimenting with an horizontal scroll section in one of my projects.

I used one of the code in the examples given in the Scrolltrigger documentation and modified it a bit.

Basically, the horizontal scroll triggers when a section with the class "horizontal" arrives. Everything works great.

The problem I'm having is with the mobile version: how could I "destroy" scrolltrigger in smallest screens to stop the horizontal scroll and make the sections go one below the other? I tried with a CSS approach but I don't think it's the right approach.

As usual, thanks for your help.

 

See the Pen BaPYJVE by luigi-basile (@luigi-basile) on CodePen

Link to comment
Share on other sites

  • Gigi1303 changed the title to Scrolltrigger - horizontal scroll - mobile version

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...