Alternative for <blink>

后端 未结 14 2258
广开言路
广开言路 2020-11-27 06:39

The tag was never an official standard, and is now completely abandoned by all browsers.

Is there a standards compliant way of making text blink?

14条回答
  •  天涯浪人
    2020-11-27 07:08

    The blick tag is deprecated, and the effect is kind of old :) Current browsers don't support it anymore. Anyway, if you need the blinking effect, you should use javascript or CSS solutions.

    CSS Solution

    blink {
        animation: blinker 0.6s linear infinite;
        color: #1c87c9;
    }
    @keyframes blinker {  
        50% { opacity: 0; }
    }
    .blink-one {
        animation: blinker-one 1s linear infinite;
    }
    @keyframes blinker-one {  
        0% { opacity: 0; }
    }
    .blink-two {
        animation: blinker-two 1.4s linear infinite;
    }
    @keyframes blinker-two {  
        100% { opacity: 0; }
    }
    
    
      
        Title of the document
      
      
        

    Blinking text

    CSS blinking effect for opacity starting with 0%

    sourse: HTML blink Tag

提交回复
热议问题