Buy me a coffee

Hover Video – Show Text, Overlay and still be clickable

#1. First, you need to add Video Caption

Hover Video Show Text Overlay And Still Be Clickable 01 Min

#2. Next, use this code to Custom CSS box

div.video-caption-wrapper {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
}
div.video-block:hover div.video-caption-wrapper {
    opacity: 1;
}

Hover Video Show Text Overlay And Still Be Clickable 02 Min

#3. Result

Hover Video Show Text Overlay And Still Be Clickable 03 Min

#4. If you want to apply this for videos on one page only, first you need to find Page ID. Use this tool.

In my example, we have:

  • #collection-62efb3c3c8fd1b760e7e4471

Hover Video Show Text Overlay And Still Be Clickable 04 Min

Next, use this CSS code

#collection-62efb3c3c8fd1b760e7e4471 {
div.video-caption-wrapper {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
}
div.video-block:hover div.video-caption-wrapper {
    opacity: 1;
}}

Hover Video Show Text Overlay And Still Be Clickable 05 Min

#5. If you want to apply for specific video: First you need to find Video Block, use #4 tool.

In my example, we have:

  • #block-yui_3_17_2_1_1723475358355_58212

Hover Video Show Text Overlay And Still Be Clickable 06 Min

Next, use this code to Custom CSS box

#block-yui_3_17_2_1_1723475358355_58212 {
div.video-caption-wrapper {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
}
&:hover div.video-caption-wrapper {
    opacity: 1;
}}

Hover Video Show Text Overlay And Still Be Clickable 07 Min