UNPKG

ldrs

Version:

Minimalist loading animations for React and web components

126 lines (111 loc) 2.64 kB
.container_331d2a { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; height: var(--uib-size); width: var(--uib-size); } .inner_caa21c { position: relative; display: flex; align-items: center; justify-content: flex-start; height: var(--uib-size); width: var(--uib-size); } .line_c58bbf { position: absolute; top: 0; left: calc(50% - var(--uib-stroke) / 2); display: flex; align-items: flex-start; height: 100%; width: var(--uib-stroke); } .line_c58bbf::before { content: ""; height: 22%; width: 100%; border-radius: calc(var(--uib-stroke) / 2); background-color: var(--uib-color); animation: pulse_0822a3 calc(var(--uib-speed)) ease-in-out infinite; transition: background-color 0.3s ease; transform-origin: center bottom; } .line_c58bbf:nth-child(1) { transform: rotate(-30deg); } .line_c58bbf:nth-child(1)::before { animation-delay: calc(var(--uib-speed) / -12 * 1); } .line_c58bbf:nth-child(2) { transform: rotate(-60deg); } .line_c58bbf:nth-child(2)::before { animation-delay: calc(var(--uib-speed) / -12 * 2); } .line_c58bbf:nth-child(3) { transform: rotate(-90deg); } .line_c58bbf:nth-child(3)::before { animation-delay: calc(var(--uib-speed) / -12 * 3); } .line_c58bbf:nth-child(4) { transform: rotate(-120deg); } .line_c58bbf:nth-child(4)::before { animation-delay: calc(var(--uib-speed) / -12 * 4); } .line_c58bbf:nth-child(5) { transform: rotate(-150deg); } .line_c58bbf:nth-child(5)::before { animation-delay: calc(var(--uib-speed) / -12 * 5); } .line_c58bbf:nth-child(6) { transform: rotate(-180deg); } .line_c58bbf:nth-child(6)::before { animation-delay: calc(var(--uib-speed) / -12 * 6); } .line_c58bbf:nth-child(7) { transform: rotate(-210deg); } .line_c58bbf:nth-child(7)::before { animation-delay: calc(var(--uib-speed) / -12 * 7); } .line_c58bbf:nth-child(8) { transform: rotate(-240deg); } .line_c58bbf:nth-child(8)::before { animation-delay: calc(var(--uib-speed) / -12 * 8); } .line_c58bbf:nth-child(9) { transform: rotate(-270deg); } .line_c58bbf:nth-child(9)::before { animation-delay: calc(var(--uib-speed) / -12 * 9); } .line_c58bbf:nth-child(10) { transform: rotate(-300deg); } .line_c58bbf:nth-child(10)::before { animation-delay: calc(var(--uib-speed) / -12 * 10); } .line_c58bbf:nth-child(11) { transform: rotate(-330deg); } .line_c58bbf:nth-child(11)::before { animation-delay: calc(var(--uib-speed) / -12 * 11); } @keyframes pulse_0822a3 { 0%, 80%, 100% { transform: scaleY(0.75); opacity: 0; } 20% { transform: scaleY(1); opacity: 1; } }