Jump to content
Search Community

touch events for expand/collapse

gweatherson test
Moderator Tag

Recommended Posts

I'm at a loss on how to make this gallery behave smoother on mobile, specifically when getting to the section I'd like the user to swipe there fingers up and down and expand/collapse the items instead of tapping. If a user scrolls on the sides of the section they can go to the previous  or next (green) sections. This would probably be a pin function. I tried some scrollTrigger options but it felt very jittery. I'd like for it to be touch events instead of scroll.

 

This example is webgl and really complicated, but closer to the goal in mind.. this example also doesn't have sections above and blow so it's more simple in a sense: https://phlntn.com/

 

Thank you for helping.

See the Pen OJrJypd by gweatherson (@gweatherson) on CodePen

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