Jump to content

Add padding to slideshow reel in 7.1

Recommended Posts

  • 1 month later...
14 minutes ago, gradycomms said:

@tuanphan when I used your code, it added the padding by cropping the image on the left. Any tips on how to get the padding to just go between the images without cutting it off?

URL:  https://synthesizer-scarlet-yx66.squarespace.com/

Password: jhlcompany

@media screen and (min-width:992px) {
.gallery-reel-item {
    width: 90px !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!)

Link to comment
  • 1 month later...
On 4/23/2020 at 8:24 PM, tuanphan said:

@media screen and (min-width:992px) {
.gallery-reel-item {
    width: 90px !important;
}
}

 

 

On 3/12/2020 at 6:12 AM, tuanphan said:

Add to Home > Design > Custom CSS


.gallery-reel-item img {left: 10px !important;}

 

both of these cut off parts of my images. would appreciate any help you can offer, thanks!

here's my site url (password is password): https://tarpon-mandolin-lblr.squarespace.com/

Link to comment
1 hour ago, crrjuilliard said:

 

both of these cut off parts of my images. would appreciate any help you can offer, thanks!

here's my site url (password is password): https://tarpon-mandolin-lblr.squarespace.com/

Where is gallery reel?

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!)

Link to comment
3 hours ago, crrjuilliard said:

I'm creating an automatically sliding gallery. already used code to hide the slide buttons. just needed to increase the padding between the logos

Screen Shot 2020-05-24 at 4.03.37 AM.png

It seems you can't. Why don't use Gallery Grid?

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!)

Link to comment
  • 2 months later...
  • 1 month later...

Hi @tuanphan--

 

Unfortunately, this code cuts off the right side of the image when I increase it to 100px. I am looking to create a photo separation kind of like in the CAMPAIGNS section of this website below:

https://rafsimons.com/ss20 CAMPAIGNS

 

How would I be able to achieve this layout?? (Would be great if you have any insight on horizontal scrolling as well) 

 

Thank you!! 

 

 

.gallery-reel-item img {left: 10px !important;}

 

Best,

Grace

Link to comment
On 5/24/2020 at 8:04 PM, crrjuilliard said:

I'm creating an automatically sliding gallery. already used code to hide the slide buttons. just needed to increase the padding between the logos

Screen Shot 2020-05-24 at 4.03.37 AM.png

are you trying to have the same gap between all of the images? 
I am working on that same situation currently. I had to make sure all vectors/images were the same size/ratio to start with

Link to comment
  • 4 months later...

Hi, I am having this same problem currently in Squarespace 7.1 Slideshow Reel, all images are the same square pixel size and the two codes above still cut off the right side of the images by moving them into their neighbors - the images do not space outward from each other. Any suggestions? Thanks!

https://innovativeintensity.squarespace.com/ bottom of the page. I need to add more spacing between these logos.

Edited by standardtoaster
added website for reference
Link to comment
  • 3 months later...
  • 1 month later...
On 6/23/2021 at 2:28 AM, FabiSantiago said:

Hi same issue.

Can't add space without cropping the images, which is annoying.

Anyone know how to fix this? I tryed the solutions above but they didn't work.

tx

Can you share link to reel on your site?

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!)

Link to comment
  • 3 months later...
  • 5 months later...
On 5/18/2021 at 4:23 PM, helloVlad said:

At the moment I'm using scale:

.gallery-reel-item img {
    transform: scale(.9);
}

 

I used this combined with code from another site to achieve my desired outcome.  I wanted to make an auto scrolling bar down the bottom with logos to run through and found some solutions would crop the images and make it a little frustrating to deal with. Solution for my fix:

FOR AUTO SCROLLING:

PAGE>ADVANCED>CODE INJECTION (ADJUSTABLE CODE IS BOLD)

Gallery:  1 will select the first reel on your page. Change to 2/3/4 etc if multiple on the page.
Direction: 1 for right, 2 for left scroll
Timing: In milliseconds. 3000 for 3 second scroll.


<script>
    /**
    *  Gallery Section Auto Scroller
    **/
  (function () {
    setAutoScroll({
      gallery: 1,
      direction: 2,
      timing: 3000,

    });

    /*
    * Copy and paste the above code
    * to target more auto-scrolling
    * sections
    **/

    /** gallery
    * gallery section order on the page. Ex:
    * 1 = the first gallery section on a page,
    * 2 = the second gallery section on a page
    **/

    /** direction
    * direction the gallery should go in.
    * 1 = backwards,
    * 2 = forwards
    **/

    /** timing
    * timing between each slide, in milliseconds. Ex:
    * 2000 = 2 seconds
    **/

    function setAutoScroll(settings) {
      function init() {
        let section = document.querySelectorAll(".page-section.gallery-section")[settings.gallery - 1];

        function clickArrow() {
          if (section && !document.querySelector("html.sqs-modal-lightbox-open") && !document.hidden && !document.querySelector("body.sqs-edit-mode")) {
            let arrow = section.querySelectorAll(".gallery-reel-control .gallery-reel-control-btn")[settings.direction - 1];
            if (arrow) arrow.click();
          }
        }

        window.setInterval(clickArrow, settings.timing);
      }

      window.addEventListener("DOMContentLoaded", init);
    }
  })();


</script>

To then adjust image sizes and padding (use the scale to adjust size of images)

DESIGN>CUSTOM CSS

[data-section-id="INSERT SECTION ID NUMBER HERE"].gallery-reel {
 padding-right:0px;
 padding-left:0px;
  height:20vh !important;
  
  .gallery-reel-item img {
    transform: scale(.75);
}
}


It is best practice to ensure the images are all the same size image to ensure this works as you desire.

Image Gallery.png

Edited by Broker_Noob89
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.