How do i centre the animated "scroll down" indicator on the image but between grass and floor

How do i centre the animated "scroll down" indicator on the image but between grass and floor. In the css this is indicated by the .indicator class. I have tried justify and text align centre to see if this would work but it hasn't.

http://www.toonsville.co.uk/

 /*controls for drop down indicator*/

.indicator {
  position: relative;
  width: 60px;
  height: 60px;
  transform: rotate(45deg);
}

.indicator span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  box-sizing: border-box;
  border: none;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  animation: animate 1s linear infinite;
}

.indicator span:nth-child(1) {
  top: -30px;
  left: -30px;
  animation-delay: 0s;
  border-color: goldenrod;
}

.indicator span:nth-child(2) {
  top: -15px;
  left: -15px;
  animation-delay: 0.2s;
  border-color: greenyellow;
}

.indicator span:nth-child(3) {
  top: 0px;
  left: 0px;
  animation-delay: 0.4s;
  border-color: orange;
}

.indicator span:nth-child(4) {
  top: 15px;
  left: 15px;
  animation-delay: 0.6s;
  border-color: darkred;
}
<div class="looneys">
  <img src="images/nobackgroundmotion-Recovered2.png" width="100%">
  <div class="indicator">

    <span></span>
    <span></span>
    <span></span>
    <span></span>
  </div>



</div>

1 answer

  • answered 2018-10-19 23:20 kcvan

    You can try adding to your indicator class:

    position: absolute;
    transform: rotate(45deg) translate3d(-50%, 0, 0);
    left: 50%;
    bottom: 70px;
    z-index: 1;