FTWSGEM Posted March 28 Share Posted March 28 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
Jia Posted March 28 Share Posted March 28 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. www.sevenstars.studio www.instagram.com/sevenstars.studio Link to comment
FTWSGEM Posted March 28 Author Share Posted March 28 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 Jia Posted March 28 Solution Share Posted March 28 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%; } } } FTWSGEM 1 Please give this a 👍 if it helps. Make sure to quote me or tag me in your reply, otherwise I won't be notified. www.sevenstars.studio www.instagram.com/sevenstars.studio Link to comment
FTWSGEM Posted March 31 Author Share Posted March 31 @Jia would you happen to know the code to keep this on a continual loop? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment