Button submit indicator
parent
aa8562a1a1
commit
48fede9e06
@ -0,0 +1,11 @@
|
||||
import styles from './spinner.module.css'
|
||||
|
||||
export default function Spinner(){
|
||||
return (
|
||||
<div className={styles.spinner}>
|
||||
<div className={styles.bounce1}></div>
|
||||
<div className={styles.bounce2}></div>
|
||||
<div className={styles.bounce3}></div>
|
||||
</div>
|
||||
)
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
.spinner {
|
||||
height: 16px;
|
||||
font-size: 35px;
|
||||
margin: 0px auto;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.spinner > div {
|
||||
width: .25em;
|
||||
height: .25em;
|
||||
background-color: currentColor;
|
||||
margin: 0 .06em;
|
||||
|
||||
border-radius: 100%;
|
||||
display: inline-block;
|
||||
-webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
|
||||
animation: sk-bouncedelay 1.4s infinite ease-in-out both;
|
||||
}
|
||||
|
||||
.spinner .bounce1 {
|
||||
-webkit-animation-delay: -0.32s;
|
||||
animation-delay: -0.32s;
|
||||
}
|
||||
|
||||
.spinner .bounce2 {
|
||||
-webkit-animation-delay: -0.16s;
|
||||
animation-delay: -0.16s;
|
||||
}
|
||||
|
||||
@-webkit-keyframes sk-bouncedelay {
|
||||
0%, 80%, 100% { -webkit-transform: scale(0) }
|
||||
40% { -webkit-transform: scale(1.0) }
|
||||
}
|
||||
|
||||
@keyframes sk-bouncedelay {
|
||||
0%, 80%, 100% {
|
||||
-webkit-transform: scale(0);
|
||||
transform: scale(0);
|
||||
} 40% {
|
||||
-webkit-transform: scale(1.0);
|
||||
transform: scale(1.0);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue