Site logo

Archived topic

How to add a scroll indicator at the bottom of my page?

10 replies · Started by Jonas on February 15, 2018

Viewing posts 1–11 of 11

Sorry, not a native speaker and I don't know if "scroll indicator" is the right term.

I'd like to have an animated item on the bottom of my homepage to show the visitor there's more below and make him/her scroll. I'm working with Elementor Pro.

Can anyone recommend a good way to implement that?

The easiest way would be to add an image element within the first section of your website.

As for your first example, they're using this HTML:

<div class="indicator">
    <div class="mouse"></div>
</div>

And this CSS:

.indicator {
    display: block;
    position: absolute;
    color: #fff;
    left: calc(50% - 24px);
    top: calc(90% - 24px);
    width: 55px;
    height: 55px;
    border-radius: 100%;
    box-shadow: 0 0 0 5px transparent;
    background: rgba(0,0,0,.5);
    z-index: 2;
}

.mouse {
    border: 2px solid #fff;
    border-radius: 26px;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 35px;
    -webkit-backface-visibility: hidden;
    transform: translate(-50%,-50%);
}

.mouse:after {
    background-color: #fff;
    border-radius: 100%;
    content: "";
    position: absolute;
    top: 5px;
    left: 50%;
    margin-left: -2px;
    width: 4px;
    height: 4px;
    opacity: 1;
    transform: translateY(0) scaleY(1) scaleX(1) translateZ(0);
    animation: scroll 1.5s -1s cubic-bezier(.68,-.55,.265,1.55) infinite;
}

@keyframes scroll{
    10% {
        height:5px
    }
    15% {
        height:4px;
        transform:scale(1) translateY(-1px)
    }
    85% {
        transform:translateY(20px);
        opacity:0
    }
    100%{
        opacity:0
    }
}

I'm trying to add a scroll indicator using this post, but I can't get the animation to work. If I go to http://da-ink.com/ using Chrome, it works correctly on my Window 10 system. However, my test site fails:

https://test.jonesbrothersmarine.com/

The site does use Elementor Pro.

Any suggestions?

Thanks,
Don

Thanks Tom! Adding the "@keyframes scroll" worked. I appreciate the help!

You're welcome :)

Tom, I'm curious... Did you figure out the missing @keyframes CSS entry using the chrome inspect tool? I'd spent several hours attempting to get automation working - comparing a site where it worked to mine. I'd read @keyframes is required by some browsers, but never noticed the @keyframes entry on the working site. I checked the https://www.kaocollins.com/inktank/ site again, and still don't see the entry.

Thanks again,
Don

Hi Don,

I had to go into the stylesheet to find the @keyframes CSS, as it won't show in developer tools, unfortunately.

This archived topic is closed to new replies.