UNPKG

react-js-loader

Version:
97 lines (89 loc) 2.18 kB
.sl-box5, .sl-box5 * { padding: 0; margin: 0; -webkit-box-sizing: border-box; box-sizing: border-box; } .sl-box5 { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -ms-flex-wrap: nowrap; flex-wrap: nowrap; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; } .sl-box5 .sl-loader-title { width: 100%; text-align: center; font-size: 20px; font-weight: 700; line-height: 1.7; color: var(--cl); } .sl-box5 .sl-loader { width: 100px; -webkit-transform: scale(var(--size)); transform: scale(var(--size)); } .sl-box5 .sl-loader .sl-loader-items { width: 100%; height: 100px; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; -ms-flex-wrap: nowrap; flex-wrap: nowrap; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; -webkit-box-align: center; -ms-flex-align: center; align-items: center; } .sl-box5 .sl-loader .sl-loader-items .sl-rectangular-ping { width: 100%; height: 5px; position: relative; background-color: var(--bg); overflow: hidden; } .sl-box5 .sl-loader .sl-loader-items .sl-rectangular-ping::before { content: ''; width: 10px; height: 100%; position: absolute; top: 0; background-color: var(--bgb); -webkit-animation: sl-rectangular-ping 800ms ease-in infinite; animation: sl-rectangular-ping 800ms ease-in infinite; } @-webkit-keyframes sl-rectangular-ping { from { left: -10px; } to { left: calc(100% + 10px); } } @keyframes sl-rectangular-ping { from { left: -10px; } to { left: calc(100% + 10px); } }