4 Years
Discussion Span
Last Post by frankjames018

A quick search online reveals quite a bit of solutions. Here is one where someone wrote their own plug-in for jQuery: http://www.antiyes.com/jquery-blink-plugin

However, i think a plugin is kind of an overkill.

Here is a few lines of jQuery code that applies the "blink" to any element with a class of "blink".

<!DOCTYPE html>
 <script src="jquery.js"></script>
<p class="blink">This text will blink...</p>

$('.blink').each(function() {
    var e = $(this);
    setInterval(function() {
        if (e.css('visibility') == 'hidden') {
            e.css('visibility', 'visible');
        } else {
            e.css('visibility', 'hidden');
    }, 500);

Of course modify the script element above to point to your jQuery library.


Remember that blinking text was done as a joke by Netscape to demonstrate that html could do some strange things. It was NEVER intended to be used, and is a bit amateurish. It's probably been removed from your browser's parsing engine to improve the quality of websites everywhere.

Edited by drjohn


blinking a test or phrase is not a good aspect for a good website. other than use this for making some text blink.

<blink>Why use this?</blink>

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.