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

Home Forums Support [Resolved] How to add a scroll indicator at the bottom of my page?

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

  • This topic has 10 replies, 4 voices, and was last updated 4 years ago by Tom.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #497852
    Jonas

    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?

    #498235
    Leo
    Staff
    Customer Support

    Hi there,

    Are you referring to something like this? https://generatepress.com/forums/topic/pause-scrolling-with-parallax-sections/#post-492686

    Elementor might have something built in as well. Best to check with them.

    Let me know if this helps.

    #498401
    Jonas

    Hi Leo,

    I’m referring to something like the item on the bottom of this website:

    https://www.kaocollins.com/inktank/

    Another example, bottom right corner:

    http://da-ink.com/

    #498607
    Tom
    Lead Developer
    Lead Developer

    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
        }
    }
    #1231468
    Don

    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

    #1231522
    Don

    Additional info. I also created a test page that does not use Elementor. See:

    https://test.jonesbrothersmarine.com/test.htm

    The scroll indicator appears in the lower right corner of the footer area. Still no animation.

    #1231892
    Tom
    Lead Developer
    Lead Developer
    #1231932
    Don

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

    #1232819
    Tom
    Lead Developer
    Lead Developer

    You’re welcome 🙂

    #1232940
    Don

    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

    #1233342
    Tom
    Lead Developer
    Lead Developer

    Hi Don,

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

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.