Search
 
SCRIPT & CODE EXAMPLE
 

HTML

blinking text in html using javascript

<!DOCTYPE html>
<html>

<head>
    <title> Blinking feature using JavaScript </title>
    <style>
        #blink {
            font-size: 20px;
            font-weight: bold;
            color: #2d38be;
            transition: 0.5s;
        }
    </style>
</head>

<body>
    <p id="blink"> This is an example of blinking text using JS. </p>
    <script type="text/javascript">
        var blink = document.getElementById('blink');
        setInterval(function() {
            blink.style.opacity = (blink.style.opacity == 0 ? 1 : 0);
        }, 1500);
    </script>
</body>

</html>
Live Demo ❯
Comment

PREVIOUS NEXT
Code Example
Html :: ionic format date 
Html :: html div 
Html :: html select placeholder 
Html :: datatable src 
Html :: show html in select2 option 
Html :: how to install font-aweseome usin npm 
Html :: html row 
Html :: link to parent folder html 
Html :: meta description tag in html 
Html :: how to host html website 
Html :: display date on html 
Html :: one image html 
Html :: modal pop up html css 
Html :: toggle button 
Html :: index.html is stored in folder github 
Html :: serve index.html locally 
Html :: django template list item by index 
Html :: JSPL loop through map keys 
Html :: the <video tag 
Html :: bootstrap navvar 
Html :: time.mktime 
Html :: how to select only one checkbox in html 
Html :: table in bootstrap 4 
Html :: html new line 
Html :: how to create js code 
Html :: html to markdown 
Html :: bootsrap cards 
Html :: drag and drop angular 
Html :: klaviyo properties 
Html :: w3c valid html boilerplate 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =