.t-float-left { float: left; } .t-float-right { float: right; } @keyframes tdesign-fade-out { from { opacity: 1; } to { opacity: 0; } } .hotspot-expanded.relative { position: relative; } .hotspot-expanded::after { content: ''; display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; transform: scale(1.5); } .t-loading { display: inline-flex; align-items: center; justify-content: center; font-size: 24rpx; } .t-loading__spinner { position: relative; box-sizing: border-box; width: 100%; height: 100%; max-width: 100%; max-height: 100%; animation: rotate 0.8s linear infinite; color: #0052d9; } .t-loading__spinner.reverse { animation-name: rotateReverse; } .t-loading__spinner--spinner { animation-timing-function: steps(12); } .t-loading__spinner--spinner .t-loading__dot { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } .t-loading__spinner--spinner .t-loading__dot::before { display: block; width: 5rpx; height: 25%; margin: 0 auto; background-color: currentColor; border-radius: 40%; content: ' '; } .t-loading__spinner--circular .t-loading__circular { border-radius: 100%; width: 100%; height: 100%; background: conic-gradient(from 180deg at 50% 50%, rgba(255, 255, 255, 0) 0deg, rgba(255, 255, 255, 0) 60deg, currentColor 330deg, rgba(255, 255, 255, 0) 360deg); mask: radial-gradient(transparent calc(50% - 1rpx), #fff 50%); /* stylelint-disable-next-line */ -webkit-mask: radial-gradient(transparent calc(50% - 1rpx), #fff 50%); } .t-loading__spinner--dots { display: flex; justify-content: space-between; align-items: center; animation: none; } .t-loading__spinner--dots .t-loading__dot { width: 20%; height: 20%; border-radius: 50%; background-color: currentColor; animation-duration: 1.8s; animation-name: dotting; animation-timing-function: linear; animation-iteration-count: infinite; animation-fill-mode: both; } .t-loading--vertical { flex-direction: column; } .t-loading--vertical .t-loading__text { margin-top: 12rpx; } .t-loading--horizontal { flex-direction: row; } .t-loading--horizontal .t-loading__text { margin-left: 16rpx; } .t-loading__refresh-btn { margin-left: 16rpx; color: #0052d9; } .t-loading__bar { height: 6rpx; width: 80%; transition: 0.5s; background-color: #0052d9; display: none; } .t-loading__bar--static { display: block; } .t-loading__bar--loaded { opacity: 0; height: 0; animation: t-bar-loaded 1s ease-out; } .t-loading__bar--animation { animation: t-bar 8s linear; display: block; } @keyframes t-bar { 0% { width: 0; } 50% { width: 70%; } 100% { width: 80%; } } @keyframes t-bar-loaded { 0% { height: 6rpx; opacity: 1; width: 90%; } 50% { height: 6rpx; opacity: 1; width: 100%; } 100% { height: 0; opacity: 0; width: 100%; } } .t-loading__dot:nth-of-type(1) { transform: rotate(30deg); opacity: 0; } .t-loading__dot:nth-of-type(2) { transform: rotate(60deg); opacity: 0.08333333; } .t-loading__dot:nth-of-type(3) { transform: rotate(90deg); opacity: 0.16666667; } .t-loading__dot:nth-of-type(4) { transform: rotate(120deg); opacity: 0.25; } .t-loading__dot:nth-of-type(5) { transform: rotate(150deg); opacity: 0.33333333; } .t-loading__dot:nth-of-type(6) { transform: rotate(180deg); opacity: 0.41666667; } .t-loading__dot:nth-of-type(7) { transform: rotate(210deg); opacity: 0.5; } .t-loading__dot:nth-of-type(8) { transform: rotate(240deg); opacity: 0.58333333; } .t-loading__dot:nth-of-type(9) { transform: rotate(270deg); opacity: 0.66666667; } .t-loading__dot:nth-of-type(10) { transform: rotate(300deg); opacity: 0.75; } .t-loading__dot:nth-of-type(11) { transform: rotate(330deg); opacity: 0.83333333; } .t-loading__dot:nth-of-type(12) { transform: rotate(360deg); opacity: 0.91666667; } @keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } @keyframes rotateReverse { from { transform: rotate(360deg); } to { transform: rotate(0deg); } } @keyframes dotting { 0% { opacity: 0.4; } 1% { opacity: 0.8; } 33% { opacity: 0.8; } 34% { opacity: 0.4; } 100% { opacity: 0.4; } }