1、颜色从左到右渐变且有流动效果
<div class="part tx-one"></div>
<style>
.part{height:50px; width:200px; border:1px solid #333;margin:50px auto;}
.tx-one{background-image: linear-gradient(to right, #ff4167, #ff4454, #ff4a30, #ff4167);
animation: rainbow-border 1.5s linear 0.2s infinite;}
</style>