비전공자 개발일기

Loading Animation 본문

HTML _CSS

Loading Animation

HiroDaegu 2022. 4. 12. 00:27
728x90
SMALL

 

Loading Animation
<div class="loader-wrapper">
  <div class="loader">
    <div class="loader loader-inner"></div>
  </div>
</div>
.loader-wrapper {
  width: 60px;
  height:60px;
}

.loader {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border: 10px solid #162534;
  border-top-color: #4bc8eb;
  border-bottom-color: #f13a8f;
  border-radius: 50%;
  animation: rotate 5s linear infinite;
}

.loader-inner {
  border-top-color: #36f372;
  border-bottom-color: #fff;
  animation-duration: 2.5s;
}

@keyframes rotate {
  0%{
    transform: scale(1) rotate(360deg);
  }
  50% {
    transform: scale(.8) rotate(-360deg);
  }
  100% {
    transform: scale(1) rotate(360deg);
  }
}
728x90
LIST

'HTML _CSS' 카테고리의 다른 글

Button Purse AniMation  (0) 2022.04.14
Bell Animation  (0) 2022.04.13
New HTML5 Tags with no CSS & JS  (0) 2022.01.17
HTML CSS - Dropdown menu Hover  (0) 2021.10.16
HTML & CSS -Publishing2  (0) 2021.10.08