Jump to content

text overlay on hover in the image block card

Recommended Posts

Site URL: http://www.uti.sandnes.no

Hi!

I am a bit inexperienced with Sqaurespace so all help is appreciated.

I am using the module in "headlines":

347308753_Skjermbilde2020-06-19kl_11_15_06.png.2c1fbcc25a768df7f1faf508183f4a85.png

And I would like a text overlay with hover on the image, for photo crediting.

However, I have only managed to get the hover, no text to work...

This is the code I have used. Can anyone tell me what it is missing to get the "filenaame" to appear on hover?

/* Hover Effect Images */
.sqs-block-image:hover { brightness: 100%; transition: .6s; cursor: pointer;}
.sqs-block-image:hover img { filter: brightness(0.9); transition: .3s;}
.image-filename.sqs-dynamic-text {
  font-size: 15px !important;
  }
.sqs-block-image:not(:hover) 
.image-card-wrapper { display:none;}

Thanx!

 

 

 

Link to comment
  • Replies 1
  • Views 488
  • Created
  • Last Reply

Hi dear your site is not accessible

image.png.d74ff2c0de5ef5cbda39341dd0608e3f.png

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.