LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code

Single Element Animated Icon

CSS
*, :before, :after {
  box-sizing: border-box;
  text-align: center;
}

h1 {
  padding: 2rem 0;
}

.icon-download {
  position: relative;
  display: block;
  width: 50px;
  height: 25px;
  margin: auto;
  border: solid 10px #336699;
  border-top: none;
}
.icon-download:before, .icon-download:after {
  content: '';
  display: block;
  position: absolute;
  animation: icon-bounce .5s infinite alternate;
}
.icon-download:before {
  left: 10px;
  top: -10px;
  width: 10px;
  height: 11px;
  background: #336699;
}
.icon-download:after {
  left: 5px;
  top: 0;
  width: 0;
  height: 0;
  border-left: solid 10px transparent;
  border-right: solid 10px transparent;
  border-top: solid 10px #336699;
}

@keyframes icon-bounce {
  from {
    transform: translateY(-8px);
  }
  to {
    transform: translateY(0);
  }
}
Term
Sat, 04/14/2018 - 20:44

Related Codes

Pen ID
Pen ID
Pen ID
Square Adv