Jump to content

Adding Hover Effect and text box in gallery

Recommended Posts

Site URL: https://parakeet-lime-ltcg.squarespace.com/?p

Does anyone know how I can adjust my code to make hover effects on images in a gallery? Also I am trying to have at ext box display. I am hoping to make it look like this:

https://www.imagebrew.com/home

Here is my code:

body {
  width: 100%;
}
section.gallery-section [class*='-item']:not([class*='-item-']):not([class*='-reel']):not([class*='-slideshow']) {
  position: relative;
}
.gallery-item-description {
  font-family: granville, serif;
  font-size: 30px;
  color: black;
  text-align: center;
}
.gallery-grid, .gallery-strips, .gallery-masonry, .gallery-reel, .gallery-fullscreen-slideshow {
  .gallery-item-description {
    position: absolute;
       top: 50%;
    width: 100%;
    bottom: 0;
padding: 0% 0%;
    box-sizing: border-box;

  }}
.gallery-gallery-reel-list:hover a img {
  opacity: 0.4!important;
}

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

figure.gallery-reel-item.has-clickthrough:hover img {
    opacity: 0.5;
}

figure.gallery-reel-item.has-clickthrough:hover {
    opacity: 0.5;
}

 

Thanks!

Link to comment
  • Replies 1
  • Views 536
  • Created
  • Last Reply
On 3/26/2021 at 10:06 PM, NateChristy said:

Site URL: https://parakeet-lime-ltcg.squarespace.com/?p

Does anyone know how I can adjust my code to make hover effects on images in a gallery? Also I am trying to have at ext box display. I am hoping to make it look like this:

https://www.imagebrew.com/home

Here is my code:

body {
  width: 100%;
}
section.gallery-section [class*='-item']:not([class*='-item-']):not([class*='-reel']):not([class*='-slideshow']) {
  position: relative;
}
.gallery-item-description {
  font-family: granville, serif;
  font-size: 30px;
  color: black;
  text-align: center;
}
.gallery-grid, .gallery-strips, .gallery-masonry, .gallery-reel, .gallery-fullscreen-slideshow {
  .gallery-item-description {
    position: absolute;
       top: 50%;
    width: 100%;
    bottom: 0;
padding: 0% 0%;
    box-sizing: border-box;

  }}
.gallery-gallery-reel-list:hover a img {
  opacity: 0.4!important;
}

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

figure.gallery-reel-item.has-clickthrough:hover img {
    opacity: 0.5;
}

figure.gallery-reel-item.has-clickthrough:hover {
    opacity: 0.5;
}

 

Thanks!

We can help by enable site wide password to get access to your site

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 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

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.