Jump to content

Change image on hover in List Section: Carousel and List Section: Banner Slideshow

Recommended Posts

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

1 hour ago, RKS said:

Hello, I would like to enable hover effect on my website for images in list section carousel and banner slideshow (under the PORTFOLIO menu item) so that an alternate image appears on hover. Is there a CSS code that could help with this?

Website: https://toucan-rhombus-85w7.squarespace.com/

Password: AB123!

Thank you. 

You can try adding to Home > Design > Custom Css


section[data-section-id="63664642b29e8e13265708d3"] .gallery-grid-lightbox-link:before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 999;  
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.5s ease;
}

section[data-section-id="63664642b29e8e13265708d3"] .gallery-grid-lightbox-link:hover:before {
  opacity: 1;
}

section[data-section-id="63664642b29e8e13265708d3"] .gallery-grid-item:nth-child(1) .gallery-grid-lightbox-link:before {
  background-image: url(https://images.unsplash.com/photo-1664574654521-7faf33eb9086?ixlib=rb-4.0.3&ixid=MnwxMjA3fDF8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80);
}

section[data-section-id="63664642b29e8e13265708d3"] .gallery-grid-item:nth-child(2) .gallery-grid-lightbox-link:before {
  background-image: url(https://images.unsplash.com/photo-1670189577367-2c6ef31a4b8c?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=764&q=80);
}

Support me by pressing 👍 or marking as solution if this useful for you

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

My testing

image.thumb.png.7b9a3a7f5a8907fd032df27c0af1f945.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Thank you for your help. It worked for me on the Gallery Grid format. 

But I was not able to make it work on the List Section: Carousel or List Section: Banner Slideshow.  Is it the same code with some tweaks of a different code for these two List Sections. 

Thx!

Link to comment
On 12/6/2022 at 3:34 AM, RKS said:

Thank you for your help. It worked for me on the Gallery Grid format. 

But I was not able to make it work on the List Section: Carousel or List Section: Banner Slideshow.  Is it the same code with some tweaks of a different code for these two List Sections. 

Thx!

You mean for this page? Hover image >> Change to another image, same text?

https://toucan-rhombus-85w7.squarespace.com/inrepose

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.