1. 程式人生 > >CSS實現vip閃光特效

CSS實現vip閃光特效

col 100% bgp line red http com 特效 cli

<body>
    <p class="goodman">還給我吧,我的時間我的錢</p>
</body>
        .goodman{
            font-size: 20px;
            -webkit-mask-image: linear-gradient(to right, red, orange, yellow, green, cyan, blue, purple);
            background-image: linear-gradient(to right, red, orange, yellow, green, yellow, orange, red, orange, yellow, green, yellow, orange, red)
; -webkit-background-clip: text; -webkit-text-fill-color: transparent; -webkit-background-size: 200% 100%; animation: bgp 5s infinite linear; } @-webkit-keyframes bgp { 0% { background-position: 0 0;} 100% { background-position
: -100% 0;} }

技術分享圖片

加上動畫,一股貴族氣息就撲鼻而來了

CSS實現vip閃光特效