Jump to content

Auto-scrolling logo; images resize on desktop but not on mobile

Recommended Posts

Posted

Good afternoon!

I am working on creating an auto-scrolling logo banner on my website. I followed this guide by Will Myers:

https://www.will-myers.com/scrolling-logo-in-squarespace

This worked great on desktop, but on mobile the images do not resize and instead bleed off-screen. See attached. Not sure what I can add to make the mobile version crop properly.

 

Any help would be greatly appreciated!

 

desktopgood.png

mobilebad.png

  • Replies 7
  • Views 788
  • Created
  • Last Reply
Posted
On 9/10/2021 at 8:00 PM, aestevezus said:

Hoping another bump will save me!

Add to Design > Custom CSS

/* Gallery reel images on mobile */
@media screen and (max-width:767px) {
.gallery-reel-item img {
    object-fit: contain !important;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Posted

Hi Tuan. Thanks for trying. That did not make a difference for me. Here is what I currently have for the CSS for that page.

 

Quote

/* Gallery reel images on mobile */
@media screen and (max-width:767px) {
.gallery-reel-item img {
    object-fit: contain !important;
}
}
[data-section-id='613623a2f6f13b0e87fe27ca']{
  .gallery-reel{
    height:20vh !important;
    padding-left: 0px;
    padding-right: 0px;

    figure{
    filter:grayscale(100%);
    }

    .gallery-reel-controls{
      display:none;
    }
  }
}

 

Posted

Bump. Anyone want to take a stab at this? At my wits end 😞

Archived

This topic is now archived and is closed to further replies.

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