Site Notice

hello, world

Microsoft components/progress

From Project-EPB Commons
< Microsoft components
Revision as of 23:45, 2 December 2019 by 机智的小鱼君 (talk | contribs) ([InPageEdit] 没有编辑摘要)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Horizontal

Spinner

<html> <style> /** Horizontal **/

.ms-progress {
  position: relative;
  min-width: 296px;
  width: 100%;
  overflow: hidden;
  min-height: 6px
}

.ms-progress div {
  position: absolute;
  display: inline-block;
  opacity: 0;
  animation: dots 5.5s infinite
}

.ms-progress div:after {
  content: "";
  position: absolute;
  display: inline-block;
  background: #33a0fb;
  width: 6px;
  height: 6px;
  border-radius: 50%
}

.ms-progress div:nth-child(1) {
  animation-delay: .05s
}

.ms-progress div:nth-child(1):after {
  left: -10px
}

.ms-progress div:nth-child(2) {
  animation-delay: .1s
}

.ms-progress div:nth-child(2):after {
  left: -20px
}

.ms-progress div:nth-child(3) {
  animation-delay: .15s
}

.ms-progress div:nth-child(3):after {
  left: -30px
}

.ms-progress div:nth-child(4) {
  animation-delay: .2s
}

.ms-progress div:nth-child(4):after {
  left: -40px
}

.ms-progress div:nth-child(5) {
  animation-delay: .25s
}

.ms-progress div:nth-child(5):after {
  left: -50px
}

@keyframes dots {
  0%, 20% {
    left: 0;
    animation-timing-function: ease-out;
    opacity: 0
  }
  25% {
    opacity: 1
  }
  35% {
    left: 45%;
    animation-timing-function: linear
  }
  65% {
    left: 55%;
    animation-timing-function: ease-in
  }
  75% {
    opacity: 1
  }
  80%, 100% {
    left: 100%;
    opacity: 0
  }
}

/** Spinner **/

.ms-spinner {
 position: relative

}

.ms-spinner div {

 position: absolute;
 -ms-transform: rotate(225deg);
 transform: rotate(225deg);
 animation: orbit 5.5s infinite;

}

.ms-spinner div:after {

 content: '';
 position: absolute;
 border-radius: 100%;
 background: #1483da

}

.ms-spinner div:nth-child(2) {

 animation-delay: 200ms

}

.ms-spinner div:nth-child(3) {

 animation-delay: 400ms

}

.ms-spinner div:nth-child(4) {

 animation-delay: 600ms

}

.ms-spinner div:nth-child(5) {

 animation-delay: 800ms

}

.ms-spinner {

 width: 30px;
 height: 30px

}

.ms-spinner div {

 width: 30px;
 height: 30px

}

.ms-spinner div:after {

 width: 4px;
 height: 4px

} @keyframes orbit {

 0% {
   transform: rotate(225deg);
   opacity: 1;
   animation-timing-function: ease-out
 }
 7% {
   transform: rotate(345deg);
   animation-timing-function: linear
 }
 30% {
   transform: rotate(455deg);
   animation-timing-function: ease-in-out
 }
 39% {
   transform: rotate(690deg);
   animation-timing-function: linear
 }
 70% {
   transform: rotate(815deg);
   opacity: 1;
   animation-timing-function: ease-out
 }
 75% {
   transform: rotate(920deg);
   animation-timing-function: ease-out
 }
 76% {
   transform: rotate(935deg);
   opacity: 0
 }
 100% {
   transform: rotate(935deg);
   opacity: 0
 }

} </style> </html>