Site Notice

hello, world

Difference between revisions of "Microsoft components/progress"

From Project-EPB Commons
([InPageEdit] 没有编辑摘要)
 
([InPageEdit] 没有编辑摘要 (第2部分))
Line 16: Line 16:
 
<div></div>
 
<div></div>
 
</div>
 
</div>
<html>
+
 
 +
== CSS ==
 +
{{Hide|title=Horizontal|content=
 +
<pre class="prettyprint lang-css">
 +
/** 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
 +
  }
 +
}
 +
</pre>
 +
}}
 +
 
 +
/** Spinner **/
 +
.ms-spinner {
 +
  position: relative
 +
}
 +
{{Hide|title=Spinner|content=
 +
<pre class="prettyprint lang-css">
 +
.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
 +
  }
 +
}
 +
}}<!--
 +
 
 +
--><html>
 
<style>
 
<style>
 
/** Horizontal **/
 
/** Horizontal **/
.ms-progress {
+
 
  position: relative;
+
.ms-progress {
  min-width: 296px;
+
  position: relative;
  width: 100%;
+
  min-width: 296px;
  overflow: hidden;
+
  width: 100%;
  min-height: 6px
+
  overflow: hidden;
}
+
  min-height: 6px
+
}
.ms-progress div {
+
 
  position: absolute;
+
.ms-progress div {
  display: inline-block;
+
  position: absolute;
  opacity: 0;
+
  display: inline-block;
  animation: dots 5.5s infinite
+
  opacity: 0;
}
+
  animation: dots 5.5s infinite
+
}
.ms-progress div:after {
+
 
  content: "";
+
.ms-progress div:after {
  position: absolute;
+
  content: "";
  display: inline-block;
+
  position: absolute;
  background: #33a0fb;
+
  display: inline-block;
  width: 6px;
+
  background: #33a0fb;
  height: 6px;
+
  width: 6px;
  border-radius: 50%
+
  height: 6px;
}
+
  border-radius: 50%
+
}
.ms-progress div:nth-child(1) {
+
 
  animation-delay: .05s
+
.ms-progress div:nth-child(1) {
}
+
  animation-delay: .05s
+
}
.ms-progress div:nth-child(1):after {
+
 
  left: -10px
+
.ms-progress div:nth-child(1):after {
}
+
  left: -10px
+
}
.ms-progress div:nth-child(2) {
+
 
  animation-delay: .1s
+
.ms-progress div:nth-child(2) {
}
+
  animation-delay: .1s
+
}
.ms-progress div:nth-child(2):after {
+
 
  left: -20px
+
.ms-progress div:nth-child(2):after {
}
+
  left: -20px
+
}
.ms-progress div:nth-child(3) {
+
 
  animation-delay: .15s
+
.ms-progress div:nth-child(3) {
}
+
  animation-delay: .15s
+
}
.ms-progress div:nth-child(3):after {
+
 
  left: -30px
+
.ms-progress div:nth-child(3):after {
}
+
  left: -30px
+
}
.ms-progress div:nth-child(4) {
+
 
  animation-delay: .2s
+
.ms-progress div:nth-child(4) {
}
+
  animation-delay: .2s
+
}
.ms-progress div:nth-child(4):after {
+
 
  left: -40px
+
.ms-progress div:nth-child(4):after {
}
+
  left: -40px
+
}
.ms-progress div:nth-child(5) {
+
 
  animation-delay: .25s
+
.ms-progress div:nth-child(5) {
}
+
  animation-delay: .25s
+
}
.ms-progress div:nth-child(5):after {
+
 
  left: -50px
+
.ms-progress div:nth-child(5):after {
}
+
  left: -50px
+
}
@keyframes dots {
+
 
  0%, 20% {
+
@keyframes dots {
    left: 0;
+
  0%, 20% {
    animation-timing-function: ease-out;
+
    left: 0;
    opacity: 0
+
    animation-timing-function: ease-out;
  }
+
    opacity: 0
  25% {
+
  }
    opacity: 1
+
  25% {
  }
+
    opacity: 1
  35% {
+
  }
    left: 45%;
+
  35% {
    animation-timing-function: linear
+
    left: 45%;
  }
+
    animation-timing-function: linear
  65% {
+
  }
    left: 55%;
+
  65% {
    animation-timing-function: ease-in
+
    left: 55%;
  }
+
    animation-timing-function: ease-in
  75% {
+
  }
    opacity: 1
+
  75% {
  }
+
    opacity: 1
  80%, 100% {
+
  }
    left: 100%;
+
  80%, 100% {
    opacity: 0
+
    left: 100%;
  }
+
    opacity: 0
}
+
  }
 +
}
  
 
/** Spinner **/
 
/** Spinner **/

Revision as of 23:57, 2 December 2019

Horizontal

Spinner

CSS

Horizontal
/** 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

}

Spinner
.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
  }
}

<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>