I have built a site that has a video background on the homepage. It takes up basically the full screen.
However, I have been advised to add a ‘scroll down’ visual aid to the corner to tell the user to scroll down. Are there any plugins available that can do this?
Find a container on that page that is unique for the site to put the pseudo element in. Maybe the video has some parent with a unique class or id, or there is a combination that is only on that page.
The absolute positioned element will refer its coordinates to a parent/ancestor container that also has position given to it, or to the html root if no parent has position.
Without any knowledge of your page I can only give a general answer. But I’m sure you’ll find a way to target only the home page. It probably doesn’t matter where the pseudo element is as long it can refer position to the viewport.
I see that page has a number of classes on the body tag: <body class="home page page-id-443 page-template page-template-page-tpl_full_width page-template-page-tpl_full_width-php wpb-js-composer js-comp-ver-4.12 vc_responsive">
So you have these classes to choose:
.home
.page
.page-id-443
.page-template
.page-template-page-tpl_full_width
.page-template-page-tpl_full_width-php
.wpb-js-composer
.js-comp-ver-4.12
.vc_responsive
Pick one of those that no other page has and you have solved it. E.g:
.home:before{
display:block;
position:absolute;
z-index:9; /* if it's needed */
top:100vh; /* the viewport height */
right:0;
margin:-7em 1em 0 0; /* adjust the position */
border-radius:1em;
padding:1em;
background:rgba(0,0,0,.6);
color:#fff;
text-align:center;
font:900 1.2em/1 "frutiger", sans-serif;
white-space:pre; /* to render the new line characters "\a" */
content:"\a\a\25bc";
}
EDIT)
I think you could get more response if you post the link to the page.