Search
 
SCRIPT & CODE EXAMPLE
 

HTML

how to add a blinking text in html

<!DOCTYPE html>
<html>
  
<head>
    <title>
        Blinking with JavaScript
    </title>
  
    <style>
        #blink {
            font-size: 20px;
            font-weight: bold;
            font-family: sans-serif;
        }
    </style>
</head>
  
<body>
    <p id="blink">
        Hello Geeks let's Blink
    </p>
      
    <script type="text/javascript">
        var blink = 
            document.getElementById('blink');
  
        setInterval(function () {
            blink.style.opacity = 
            (blink.style.opacity == 0 ? 1 : 0);
        }, 1000); 
    </script>
</body>
  
</html>
Comment

PREVIOUS NEXT
Code Example
Html :: how to keep :active css style after click a button 
Html :: select country dropdown with flag 
Html :: how to change mouse into hand icon when you hover over something in html 
Html :: google no translate meta tag 
Html :: how to jump line in html 
Html :: how to bold in html 
Html :: col md flex column 
Html :: iframe render html in angular 
Html :: vue button prevent double click 
Html :: html default file name a tag 
Html :: html small text 
Html :: responsive web dev for watches 
Html :: how to set video size html 
Html :: html text color tag 
Html :: link em imagem html 
Html :: how to update html before alert 
Html :: date range picker select date and several weeks 
Html :: itelaic in html 
Html :: how to change colour of part of a text in html 
Html :: make flex scroll on overflow horizontal 
Html :: Simple example of using inline javascript in html 
Html :: What is the <template Tag? 
Html :: game code in html 
Html :: fork me on github html template 
Html :: reduce the width of google recaptcha 
Html :: html entity question mark 
Html :: html syntax 
Html :: html form razor 
Html :: tailwind css range slider 
Html :: clickable images html 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =