Forums Forums General search-filter-scroll-loading icon positionning in infinite scroll?

  • This topic has 23 replies, 3 voices, and was last updated 8 years ago by Ross.
Viewing 10 posts - 1 through 10 (of 23 total)
  • Trevor
    #121421

    You would need to use custom CSS. It is not something I have experimented with.

    Anonymous
    #121457

    Ok, do you know which css should I use to positionne it?

    Best

    Trevor
    #121466

    Is it possible for me to see the search page with a link/URL?

    Anonymous
    #122733
    This reply has been marked as private.
    Anonymous
    #122775
    This reply has been marked as private.
    Trevor
    #122845

    I think this is the CSS from our plugin that controls it:

    .search-filter-scroll-loading {
      display: block;
      margin: 10px;
      margin-top: 20px;
      height: 30px;
      width: 30px;
      animation: search-filter-loader-rotate 0.7s infinite linear;
      border: 5px solid rgba(0, 0, 0, 0.15);
      border-right-color: rgba(0, 0, 0, 0.6);
      border-radius: 50%;
    }
    Anonymous
    #123291

    Hello,

    Should I add that bit of css code ???

    Could you please explain me what I have to do?

    Thanks

    Trevor
    #123307

    That is the css that our plugin uses to place the icon. If you could just repeat here the page I would see it on (it is buried in another thread I suspect)? I can then take a look to see if it can be moved.

    Anonymous
    #124938
    This reply has been marked as private.
    Trevor
    #124959

    So, I had to experiment a bit. By way of an explanation for others, in the browser inspector, I manually added this HTML inside the body tag, at the end of the page:

    <div class="search-filter-scroll-loading"></div>

    This is what our javascript does when the infinite scroll is loading. Then it was a case of finding the CSS, which I had already shown was this:

    .search-filter-scroll-loading {
        display: block;
        margin: 20px 10px 10px;
        height: 30px;
        width: 30px;
        animation: search-filter-loader-rotate .7s infinite linear;
        border: 5px solid rgba(0,0,0,.15);
            border-right-color: rgba(0, 0, 0, 0.15);
        border-right-color: rgba(0,0,0,.6);
        border-radius: 50%;
    }

    Then I had to find a way to move the icon. Making it position: absolute; means that it will always appear towards the top of the page, and so out of view when the page has been scrolled down. Making it position: relative is OK, but I do not know where exactly on the page our javascript places it. So, the extra CSS might be:

    .search-filter-scroll-loading {
      z-index: 99999999;
      left: 50%;
      top: 100%;
      position: relative;
    }

    This puts it in the middle of the page horizontally, but you will have to play with these numbers (left and top).

Viewing 10 posts - 1 through 10 (of 23 total)