UNPKG

ldrs

Version:

Minimalist loading animations for React and web components

82 lines (73 loc) 1.73 kB
.container_f5d1e6 { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; height: var(--uib-size); width: var(--uib-size); } .inner_0ac679 { --dot-size: calc(var(--uib-size) * 0.17); position: relative; display: flex; align-items: center; justify-content: flex-start; height: var(--uib-size); width: var(--uib-size); animation: smoothRotate_82841c calc(var(--uib-speed) * 1.8) linear infinite; } .dot_88b245 { position: absolute; top: 0; left: 0; display: flex; align-items: flex-start; justify-content: center; height: 100%; width: 100%; animation: rotate_51eb93 var(--uib-speed) ease-in-out infinite; } .dot_88b245::before { content: ""; height: var(--dot-size); width: var(--dot-size); border-radius: 50%; background-color: var(--uib-color); transition: background-color 0.3s ease; } .dot_88b245:nth-child(2), .dot_88b245:nth-child(2)::before { animation-delay: calc(var(--uib-speed) * -0.835 * 0.5); } .dot_88b245:nth-child(3), .dot_88b245:nth-child(3)::before { animation-delay: calc(var(--uib-speed) * -0.668 * 0.5); } .dot_88b245:nth-child(4), .dot_88b245:nth-child(4)::before { animation-delay: calc(var(--uib-speed) * -0.501 * 0.5); } .dot_88b245:nth-child(5), .dot_88b245:nth-child(5)::before { animation-delay: calc(var(--uib-speed) * -0.334 * 0.5); } .dot_88b245:nth-child(6), .dot_88b245:nth-child(6)::before { animation-delay: calc(var(--uib-speed) * -0.167 * 0.5); } @keyframes rotate_51eb93 { 0% { transform: rotate(0deg); } 65%, 100% { transform: rotate(360deg); } } @keyframes smoothRotate_82841c { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }