Jump to content
Search Community

Horizontal and vertical Scroll

Samuele test
Moderator Tag

Go to solution Solved by nico fonseca,

Recommended Posts

Hi everyone, I'm trying to set an Horizontal Scroll for the desktop version and a Vertical scroll for the mobile.
In order to do that I use the "matchMedia" property in my JS and is pretty cool, but once you resize the screen the scroll is not working as it should.

The scroll behavior in the responsive mode works only if the screen is resized.

Any thoughts about that?
Thanks.

See the Pen dyRyKPp by sml-k (@sml-k) 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...