1、HTML
<view class="title">哈哈哈哈哈</view>
2、CSS
animation: hue 6s infinite linear;
background-image: linear-gradient(135deg, #fc00c7 0%, #1c4efd 54%, #00aded 100%);
-webkit-text-fill-color: transparent;
color: transparent;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
@keyframes hue {
from {background-position:0 0; }
to {background-position: 2000px 0;} }
效果: