Jump to content

Turn video embed block description into a full image overlay on hover?

Go to solution Solved by smithy_sw,

Recommended Posts

Posted (edited)

I have an embed block displaying a vimeo video.
I would like the description below it to display as an overlay on hover – similar to the image block.

It's the green bird feeder description text on this page https://mandolin-viola-xzwy.squarespace.com/work-3 which I would like to appear similar to the yellow back of phone image at the top of the page.

Thanks for any help!

 


 

Edited by smithy_sw
Link to comment
  • smithy_sw changed the title to Turn video embed block description into a full image overlay on hover?
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Solution

Here is the solution I found.

There might be a better way, but this turns the description on a video embed block into an full overlay caption on hover.

// video embed block caption overlay //

.video-caption-wrapper:hover { 
  position: absolute;
  top: 0px;
  bottom: 0px;
  left: 0px;
  right: 0px;
  background: rgba(0,0,0,.5);
  padding: 45px 80px 50px 50px;
  max-height: 100% !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  color: white;
}

.video-caption-wrapper { 
  position: absolute;
  top: 0px;
  bottom: 0px;
  left: 0px;
  right: 0px;
  background: rgba(0,0,0,0);
  padding: 45px 80px 50px 50px;
  max-height: 100% !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  color: rgba(0,0,0,0);
}
 

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.