Jump to content

Creating a colour block on image overlay

Recommended Posts

Site URL: https://www.aestory.com

Hi,

I'm having difficulties with creating colour blocks on image overlay.

I found code and entered it in the injection custom css of the page (aestory.com/explore) which worked but doesn't on an other page (aestory.com/stories). It worked for a moment but the code I used affected both pages.

I want to create colour block when hovering on an image (poster, for example) on two different pages (two different colours).

Thanks in advance!

Edited by Feblanc
Link to comment
  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

Hi, thanks for getting back to me.

Here is the code I used:

<style>
@media only screen and (min-width: 660px) {
.design-layout-poster .image-card-wrapper {
  visibility: hidden; 
  opacity: 0;
  transition-duration: .3s;
}

.design-layout-poster:hover .image-card-wrapper {
  visibility: visible; 
  opacity: 1;
  background-color: hsla(193, 80%, 14%, 1);
}
  }
</style>

1.png

Link to comment
On 1/13/2021 at 7:18 PM, Feblanc said:

Hi!

I also would like to apply this to the "shop" page.

With Story Page, You can add some blank character for Image 2, the code will work.

With shop page, it looks like you solved?

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
  • 2 weeks later...

Hi!

The problem has sort itself out, weirdly. But for the shop page, I'd like to have the image overlay with the title below the image. With this template I can only have the title on the image overlay.

I don't think the code works for the "shop" page as the images are not poster block. 

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.