Implemented a Hover with Javascript/CSS, but it doesn't see the images in the body

A friend of mine wrote a bit of Javascript and CSS for me to accomplish the darkening effect when hovering over the lead form. But somehow it doesn’t see the images that are inside the body → see image.

Can someone help me with this?

Link to website:

$(’#lp-pom-box-587’).mouseenter(function() {
$(’#lp-pom-box-587’).mouseleave(function() {

body:after {
content: ‘’;
position: fixed;
display: block;
width: 100%;
height: 100%;
background: rgb(0 0 0 / 50%);
visibility: visible;
top: 0;
transition: .2s ease-in-out;
left: 0;
z-index: 0;
} {
opacity: 1;

1 Like

Please put the main java script in head before putting java code…
I could not found This id ((#lp-pom-box-587) in your page …
I think your java and css code is not perfect but i can help you in this problem so dont worry contact with me via