css3之animation制作闪烁文字效果

发布于2018/02/02 21:36:46  访问次数:4430  来源:本站

    <style>

        .box{ animation: change 1s  ease-in  infinite ; font-size: 36px; color:#f00; font-weight: bold}

        @keyframes change {

            0%{ text-shadow: 0 0 4px #f00}

            50%{ text-shadow: 0 0 40px #f00}

            100%{ text-shadow: 0 0 4px #f00}

        }

    </style>