Jump to content

Hover description to fade once play clicked video block -&- auto fullscreen on click

Recommended Posts

I'm looking to solve two issues. The first is regarding the hover text/description that is working great, except once the video title is clicked, the opacity remains dimmed until you fullscreen the video. Is there a way for this hover opacity to return to 100% once clicked?

 

And additionally, is it possible to have the video automatically enter fullscreen playback once clicked, with the easy option to exit the fullscreen (though this maybe limited to the embedded vendors functionality? such as vimeo?)

The site in question is: https://www.tomnoakes.net/

 

Code already applied:

 

 

.video-block {
   .embed-block-wrapper,
   .intrinsic-inner {
    padding-bottom: 40% !important
  }
}


/* Reels video overlay */
.video-caption-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 100%;
    text-align: center;
    color: white;
    font-size: 16px;
    z-index: 50000;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s;
  pointer-events: none; /* enable click */
}
.video-block .intrinsic:after {
    content: "";
    background-color: rgba(0,0,0,0.5);
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20000;
    position: absolute;
    opacity: 0;
    transition: all 0.3s;
  pointer-events: none; /* enable click */

}
.video-block:hover .intrinsic:after {
    opacity: 1;
    transition: all 0.3s;
  pointer-events: none; /* enable click */

}
.video-block:hover .video-caption-wrapper {
    opacity: 1;
    transition: all 0.3s;
  pointer-events: none; /* enable click */

}

Thank you!

Edited by Noonoo
Added url
Link to comment
  • Noonoo changed the title to Hover description to fade once play clicked video block -&- auto fullscreen on click
  • Replies 0
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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.