Jump to content

How can i code a banner slideshow on mobile?

Recommended Posts

You're going to struggle a bit due to the very different lengths of the testimonials, so you'll need to consider tweaking based on that.

Anyway, this will create a layout where the image is stacked on 

/*Squareskills - Mobile Slideshow Caption*/
#YourSectionID {
  li.slide.list-item {
    flex-direction: column;
}
  .slide-media-container {
    position: relative!important;
    height: auto!important;
    aspect-ratio: 3 / 2; //select your own Aspect Ratio here
  }
  .slide-content.list-item-card-background.list-item-rich-animation {
    margin: 0!important;
    position: relative;
    width: 100%!important;
    flex: 1; //remove if you don't want full-height captions
  }
}

However, if you try to ensure all images have the same aspect ratio you'll get this (excuse the poor cropping) where there is empty space. You can use the "flex: 1" to turn that section blue (in your case) but it'll still be empty space to consider.

image.thumb.png.b8605549ebc859ce0f413e558dd537cb.pngimage.thumb.png.30eb7a9fa8a41d55f539fe2e1c471761.png

Work With Me 🖥️💻📱

Please remember to tag me so that I get a notification and respond to your help requests.

If my answers have helped you, please drop a like and mark my answer as best to help other users find solutions quickly.

You can also thank me or make requests by buying me a coffee . (Caffeine fuels me to take more requests)

For Squarespace Tips & Tricks, visit @squareskills (Youtube 📺 Tutorials)

For Premium and FREE plugins, visit Squareskills (Plugin Store) 🧩

Some links may be affiliate/referral links.

Link to comment
17 hours ago, ThisWayToFabulous said:

@KwameAndCo also - to clarify i do NOT want it to look like this on desktop, ONLY on mobile. 

 

Ah I thought you'd have a media query already.

/*Squareskills - Mobile Slideshow Caption*/

@media (min-width: YOURBREAKPOINT) {
  
  #YourSectionID {
    li.slide.list-item {
      flex-direction: column;
    }
    .slide-media-container {
      position: relative!important;
      height: auto!important;
      aspect-ratio: 3 / 2; //select your own Aspect Ratio here
    }
    .slide-content.list-item-card-background.list-item-rich-animation {
      margin: 0!important;
      position: relative;
      width: 100%!important;
      flex: 1; //remove if you don't want full-height captions
    }
    .list-item-content__description p {
      font-size: YOURSIZE; //set your font size
    }
  }
}

I can't see the page anymore but you can just target the text with that last selector. You might need to use !important.

Work With Me 🖥️💻📱

Please remember to tag me so that I get a notification and respond to your help requests.

If my answers have helped you, please drop a like and mark my answer as best to help other users find solutions quickly.

You can also thank me or make requests by buying me a coffee . (Caffeine fuels me to take more requests)

For Squarespace Tips & Tricks, visit @squareskills (Youtube 📺 Tutorials)

For Premium and FREE plugins, visit Squareskills (Plugin Store) 🧩

Some links may be affiliate/referral links.

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.