分享一个css写法,css文字渐变色
css文字渐变色
background-image: linear-gradient(to right, #ce25c0, #d6e56e, #ee2cb3, #deae42);
-webkit-background-clip: text;
color: transparent;
display: inline-block;
animation: colorflashing-444ad1fa 1.5s ease-in-out infinite;
-webkit-animation: colorflashing-444ad1fa 1.5s ease-in-out infinite;
实现效果
蓦然、回首,那人就在灯火阑珊处