primereact
Version:
[](https://gitter.im/primefaces/primereact?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
127 lines (116 loc) • 2.97 kB
CSS
.ui-progressbar {
height: 1.2em;
text-align: left;
position: relative;
overflow: hidden;
}
.ui-progressbar-determinate .ui-progressbar-value {
height: 100%;
width: 0%;
position: absolute;
display: none;
border: 0 none;
}
.ui-progressbar-determinate .ui-progressbar-value-animate {
-webkit-transition: width 1s ease-in-out;
-moz-transition: width 1s ease-in-out;
-o-transition: width 1s ease-in-out;
transition: width 1s ease-in-out;
}
.ui-progressbar-determinate .ui-progressbar-label {
text-align: center;
height: 100%;
width: 100%;
position: absolute;
display: none;
font-weight: bold;
}
.ui-progressbar.ui-progressbar-indeterminate {
border-width: 0;
overflow: visible;
margin-top: 1.5em;
}
.ui-progressbar-indeterminate .ui-progressbar-indeterminate-container {
width: 100%;
height: 100%;
overflow: hidden;
position: relative;
border: 1px solid;
border-color: inherit;
border-radius: inherit;
}
.ui-progressbar-indeterminate .ui-progressbar-label {
position: absolute;
top: -1.3em;
}
.ui-progressbar-indeterminate .ui-progressbar-value {
border: 0 none;
}
.ui-progressbar-indeterminate .ui-progressbar-value:before {
content: '';
position: absolute;
background-color: inherit;
top: 0;
left: 0;
bottom: 0;
will-change: left, right;
-webkit-animation: ui-progressbar-indeterminate-anim 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
animation: ui-progressbar-indeterminate-anim 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
}
.ui-progressbar-indeterminate .ui-progressbar-value:after {
content: '';
position: absolute;
background-color: inherit;
top: 0;
left: 0;
bottom: 0;
will-change: left, right;
-webkit-animation: ui-progressbar-indeterminate-anim-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
animation: ui-progressbar-indeterminate-anim-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
-webkit-animation-delay: 1.15s;
animation-delay: 1.15s;
}
@-webkit-keyframes ui-progressbar-indeterminate-anim {
0% {
left: -35%;
right: 100%; }
60% {
left: 100%;
right: -90%; }
100% {
left: 100%;
right: -90%; }
}
@keyframes ui-progressbar-indeterminate-anim {
0% {
left: -35%;
right: 100%; }
60% {
left: 100%;
right: -90%; }
100% {
left: 100%;
right: -90%; }
}
@-webkit-keyframes ui-progressbar-indeterminate-anim-short {
0% {
left: -200%;
right: 100%; }
60% {
left: 107%;
right: -8%; }
100% {
left: 107%;
right: -8%; }
}
@keyframes ui-progressbar-indeterminate-anim-short {
0% {
left: -200%;
right: 100%; }
60% {
left: 107%;
right: -8%; }
100% {
left: 107%;
right: -8%; }
}