Grow your CSS skills. Land your dream job.

changing text color with Blink

  • # April 2, 2013 at 6:27 am

    i want to change text color with blinking.. that when it blikns its color must be change. help me
    h1{
    text-decoration:blink;
    }
    > so when it blink its color must be changed to a second color which i define.

    # April 2, 2013 at 6:33 am

    The “blink” value is not supported in IE, Chrome, or Safari.

    So basically…don’t.

    # April 2, 2013 at 7:58 am

    Use a CSS animation.

    @keyframes blink {
    to { color: red; }
    }

    .my-element {
    color: blue;
    animation: blink 1s steps(2, start) infinite;
    }

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".