Add a Dark overlay over image on Hover

Add this code to the Custom CSS field on the Settings tab of your Blog widget’s settings:

[class*="MediaImage__Container"]:before {
    content: "";
    background-color: rgba(0,0,0,0.5);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 999;
}
a:hover [class*="MediaImage__Container"]:before {
    opacity: 1 !important;
    transition: all 0.3s ease;
}

Result:

1 Like