/** * 首屏骨架样式。 * * 独立成文件(不经构建),因为它要在 JS 包下载、执行之前就生效 —— * 放进 src/ 走打包的话,这段样式反而会晚于首屏出现。 * * 颜色用腾讯云主色 #0052D9(与 src/styles/arco-ui/xt-theme.less 一致); * 这里不能写 var(--primary-6),因为此时 Arco 的样式表还没加载。 */ body { overflow: hidden; } .init-box { display: flex; align-items: center; justify-content: center; width: 100vw; height: 100vh; background: #f3f3f3; } .init-loading { display: flex; justify-content: space-between; width: 40px; height: 40px; } .init-loading-rect { width: 15%; height: 100%; background-color: #0052d9; border-radius: 2px; animation: init-wave 1.2s infinite ease-in-out; } .init-loading-rect:nth-child(1) { animation-delay: -1.2s; } .init-loading-rect:nth-child(2) { animation-delay: -1.1s; } .init-loading-rect:nth-child(3) { animation-delay: -1s; } .init-loading-rect:nth-child(4) { animation-delay: -0.9s; } .init-loading-rect:nth-child(5) { animation-delay: -0.8s; } @keyframes init-wave { 0%, 40%, 100% { transform: scaleY(0.4); } 20% { transform: scaleY(1); } }