UNPKG

ldrs

Version:

Minimalist loading animations for React and web components

67 lines (58 loc) 1.35 kB
.container_5ef048 { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; height: var(--uib-size); width: var(--uib-size); } .inner_02f46c { position: relative; display: flex; align-items: center; justify-content: center; height: var(--uib-size); width: var(--uib-size); } .line_5ac472 { position: absolute; top: calc(50% - var(--uib-stroke) / 2); left: 0; height: var(--uib-stroke); width: 100%; border-radius: calc(var(--uib-stroke) / 2); background-color: var(--uib-color); animation: rotate_ca6116 var(--uib-speed) ease-in-out infinite alternate; transition: background-color 0.3s ease; } .line_5ac472:nth-child(1) { animation-delay: calc(var(--uib-speed) * -0.375); } .line_5ac472:nth-child(2) { animation-delay: calc(var(--uib-speed) * -0.375); opacity: 0.8; } .line_5ac472:nth-child(3) { animation-delay: calc(var(--uib-speed) * -0.3); opacity: 0.6; } .line_5ac472:nth-child(4) { animation-delay: calc(var(--uib-speed) * -0.225); opacity: 0.4; } .line_5ac472:nth-child(5) { animation-delay: calc(var(--uib-speed) * -0.15); opacity: 0.2; } .line_5ac472:nth-child(6) { animation-delay: calc(var(--uib-speed) * -0.075); opacity: 0.1; } @keyframes rotate_ca6116 { 0% { transform: rotate(0deg); } 100% { transform: rotate(180deg); } }