Saved X
Google login
SignUp with Email
X

Blinking text using JavaScript

theindreshverma ( Edited  Sep 01, 11:35 pm )
Login

<!DOCTYPE html>
<html>
<body>
    <p id="blink">This is an example of blinking text.</p>
    <script>
    var x = document.getElementById('blink');
    setInterval(function() {
        x.style.opacity = (x.style.opacity == 0 ? 1 : 0);
    }, 2000);
    </script>
</body>
</html>

Sourcecode Tags

More Sourcecodes

More Sourcecodes