Jump to content

How to Stop Horizontal Scrolling When Using CSS for Automatic Scrolling Gallery?

Go to solution Solved by tuanphan,

Recommended Posts

Posted

I have a gallery of automatic scrolling logos on my home page. I have it set up how I want it to look, but I can't figure out how to stop the horizontal scroll for overflow.

 

Here's the code I'm using:

#section[data-section-id="6653b666a7fe4f73efaaeaa6"] {
overflow-x: hidden
}

.gallery-grid-wrapper {
display:flex !important;
animation: slideshow 30s linear infinite
}

.gallery-grid-wrapper .gallery-grid-item {
 min-width: 25%;
 margin-right: 5%
}

@keyframes slideshow {
  0%    { left: 0; }
  100%  { left: -205% }
}

 

Any help is much appreciated! 

  • Replies 2
  • Views 949
  • Created
  • Last Reply

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.