CreditCardExample/styles/component-styles/loading.css
2023-08-31 09:01:31 -06:00

102 lines
1.8 KiB
CSS

.backgroungLoader {
@apply bg-gradient-to-r from-slate-300 backdrop-blur-md;
}
.colorLoader {
@apply bg-teal-700 shadow-md drop-shadow shadow-white;
}
.div_loading {
@apply rounded-lg border border-gray-200 shadow-md sm:p-6 md:p-8 dark:border-gray-700 z-50;
position: absolute;
height: 35%;
width: 30%;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
.spinner {
display: inline-block;
position: relative;
}
.spinner div {
position: absolute;
border-radius: 50%;
animation-timing-function: cubic-bezier(0, 1, 1, 0) !important;
}
.spinner div:nth-child(1) {
left: 10%;
animation: spinner1 0.6s infinite;
}
.spinner div:nth-child(2) {
left: 10%;
animation: spinner2 0.6s infinite;
}
.spinner div:nth-child(3) {
left: 40%;
animation: spinner2 0.6s infinite;
}
.spinner div:nth-child(4) {
left: 70%;
animation: spinner3 0.6s infinite;
}
@keyframes spinner1 {
0% {
transform: scale(0);
}
100% {
transform: scale(1);
}
}
@keyframes spinner3 {
0% {
transform: scale(1);
}
100% {
transform: scale(0);
}
}
@keyframes spinner2 {
0% {
transform: translate(0, 0);
}
100% {
transform: translate(184.61%, 0);
}
}
.lds-facebook {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
}
.lds-facebook div {
display: inline-block;
position: absolute;
left: 8px;
width: 16px;
background: #fff;
animation: lds-facebook 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}
.lds-facebook div:nth-child(1) {
left: 8px;
animation-delay: -0.24s;
}
.lds-facebook div:nth-child(2) {
left: 32px;
animation-delay: -0.12s;
}
.lds-facebook div:nth-child(3) {
left: 56px;
animation-delay: 0;
}
@keyframes lds-facebook {
0% {
top: 8px;
height: 64px;
}
50%, 100% {
top: 24px;
height: 32px;
}
}