0

I'm trying to make the chevron down arrow to bounce within the blue circle. I'm using CSS3 animation from W3schools, not Animation.css. Using Chrome.

HTML:

<div class="blkcircles w3-center" id="go_down" onclick="smoothScroll(document.getElementById('second'))"> <i class="fa fa-angle-double-down" id="downchevron"></i><span></span></div>

CSS:

.blkcircles{
  height: 75px;
  width: 75px;
  border-radius: 100%;
  background: #81A4CD;
  position: absolute;
  top: 50px;
  right: 40px;
}

#downchevron{
  /*height: 100px;
  width: 100px;*/
  margin: 10px auto; 
  color: white; 
  font-size: 60px;
  animation-duration: 1s;
  animation-name: bounce;
  animation-iteration-count: infinite;

  /* Safari 4.0 - 8.0 */
  @-webkit-keyframes bounce {
   from {transform: translateY(0px);}
   to {transform: translateY(-15px);}
  }

  /* Standard syntax */
  @keyframes bounce {
   from {transform: translateY(0px);}
   to {transform: translateY(-15px);}
  }
} 

The Codepen

hnewbie
  • 151
  • 1
  • 15

0 Answers0