.searchBox{ width: 100%; padding: 20px 0; } .chartBox{ width: 100%; height: 500px; position: relative; .chartDom{ width: 100%; height: 100%; } &>.tips{ position: absolute; width: 100%; height: 100%; left: 0; top: 0; display: flex; justify-content: center; align-items: center; font-size: 20px; } .cMove{ letter-spacing: 5px; text-align: center; background-image: -webkit-linear-gradient(left, #147B96, #E6D205 25%, #147B96 50%, #E6D205 75%, #147B96); -webkit-text-fill-color: transparent; -webkit-background-clip: text; -webkit-background-size: 200% 100%; -webkit-animation: colorMove 2s infinite linear; } @-webkit-keyframes colorMove { 0% { background-position: 0 0; } 100% { background-position: -100% 0; } } }