I have incorporated a sizable overlay on my website, utilizing popify.js
. This overlay is triggered by a click function that essentially toggles between 'display:block;
' and 'display:none;
', creating a simple show/hide effect. However, I am encountering an issue where the content below the overlay is being obscured. Since the page is long vertically, I am attempting to implement a condition that will reposition the overlapped element beneath the overlay by adding a margin-top of 300px.
However, if the
.sDetails2
class is no longer set to display: block; then the margin-top: 300px;
should be removed.
The following element needs to be adjusted:
.verticallparallaxwrapper section.content-guide {
margin-top: 300px; // add this if .sDetails2 is set to display: block
}