Jump to content

Show text on hover over video but still allow video to play when clicked

Recommended Posts

Hi

I've added the following code to allow text to show when you hover over a certain image. This works great.

But when I use the same code for text over a video, the hover works, but I'm not able to play the video. Does anyone know if it's possible to have the text show on hover but still be able to play the video underneath?

Thanks

@media only screen and (min-width: 640px){
#block-yui_3_17_2_1_1679943741814_88486 {
opacity: 0;
 transition: opacity 1s
}

#block-yui_3_17_2_1_1679943741814_88486:hover {
opacity: 1;
transition: opacity 1s
}
}

 

Link to comment
  • 10 months later...
On 3/1/2024 at 11:00 AM, Robodo said:

Hello, wondering if this was solved, I'm having a similar issue and am a CSS newbie. Just trying to make it work!

Recently I solved this, but instead of play on click, it will open lightbox video on click. If you agree this, I can give you a quick guide.

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 1 month later...

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.