Jump to content

Scrolling Gallery is targeting all galleries - Help!

Go to solution Solved by Jia,

Recommended Posts

https://dinosaur-horse-8k34.squarespace.com

PW: notyet

I have a gallery block on my homepage which is a folio of scrolling logos. The code I used is:

section[data-section-id="660306201b192a3d5c8ecd97"] {
  line-height: 2 !important;
overflow-x:hidden
}
.gallery-grid-wrapper {
display:flex !important;
animation: slideshow 40s linear infinite
}
.gallery-grid-wrapper .gallery-grid-item {
 min-width: 20%;
 margin-right: 5%
}
@keyframes slideshow {
  0%    { left: 0; }
  100%  { left: -125%; }
}

However, it now seems to be targeting all galleries on the site. I have some not linked pages which have a small gallery on, for example: https://dinosaur-horse-8k34.squarespace.com/ranchroastedcoffee which now also scrolls even though I have added the section ID for the block on the homepage.

 

Link to comment
7 hours ago, FTWSGEM said:

https://dinosaur-horse-8k34.squarespace.com

PW: notyet

I have a gallery block on my homepage which is a folio of scrolling logos. The code I used is:

However, it now seems to be targeting all galleries on the site. I have some not linked pages which have a small gallery on, for example: https://dinosaur-horse-8k34.squarespace.com/ranchroastedcoffee which now also scrolls even though I have added the section ID for the block on the homepage.

 

Hi, it seems the rest of your code wasn't enclosed within the specific section id, making your code target all galleries on your site. Try this:

section[data-section-id="660306201b192a3d5c8ecd97"] {
  line-height: 2 !important;
  overflow-x:hidden

    .gallery-grid-wrapper {
      display:flex !important;
      animation: slideshow 40s linear infinite
  }
  .gallery-grid-wrapper .gallery-grid-item {
    min-width: 20%;
    margin-right: 5%
  }
  @keyframes slideshow {
    0%    { left: 0; }
    100%  { left: -125%; }
  }
}

 

Please give this a 👍 if it helps. Make sure to quote me or tag me in your reply, otherwise I won't be notified.

Link to comment
2 hours ago, Jia said:

Hi, it seems the rest of your code wasn't enclosed within the specific section id, making your code target all galleries on your site. Try this:

section[data-section-id="660306201b192a3d5c8ecd97"] {
  line-height: 2 !important;
  overflow-x:hidden

    .gallery-grid-wrapper {
      display:flex !important;
      animation: slideshow 40s linear infinite
  }
  .gallery-grid-wrapper .gallery-grid-item {
    min-width: 20%;
    margin-right: 5%
  }
  @keyframes slideshow {
    0%    { left: 0; }
    100%  { left: -125%; }
  }
}

 

Thank you, it seems to have stopped the other galleries but also the one I aim to target. 

Link to comment
  • Solution
6 hours ago, FTWSGEM said:

Thank you, it seems to have stopped the other galleries but also the one I aim to target. 

Ahh my bad, I missed a colon. Let's try this code:

section[data-section-id="660306201b192a3d5c8ecd97"] {
  line-height: 2 !important;
  overflow-x:hidden;

  .gallery-grid-wrapper {
    display:flex !important;
    animation: slideshow 40s linear infinite
  }
  .gallery-grid-wrapper .gallery-grid-item {
    min-width: 20%;
    margin-right: 5%
  }
  @keyframes slideshow {
    0%    { left: 0; }
    100%  { left: -125%; }
  }
}

Please give this a 👍 if it helps. Make sure to quote me or tag me in your reply, otherwise I won't be notified.

Link to comment

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.