Write a jQuery code to blink text continuously.

Write a jQuery code to blink text continuously

Write a jQuery code to blink text continuously

Answer : 
File Name : jQuery6.html

<html>
<head>
    <script src="https://code.jquery.com/jquery-3.6.0.js" integrity="sha256-H+K7U5CnXl1h5ywQfKtSj8PCmoN9aaq30gDh27Xc0jk=" crossorigin="anonymous"></script>
    <title>SP Creation</title>
</head>
<body>
    <div class="container">
        <div class="col">
            <marquee direction="left"><span class="blink bg-danger text-white" >New</span> States and private hospitals are scheduled to begin vaccinating adults above 18 from May 1</marquee>
        </div>
    </div>
    <script>
        $(document).ready(function(){
            function blink_text() {
                $('.blink').fadeOut(500);
                $('.blink').fadeIn(500);
            }
        setInterval(blink_text, 1000);  
        });
    </script>
</body>
</html>

Write a jQuery code to blink text continuously. Write a jQuery code to blink text continuously. Reviewed by technical_saurabh on April 30, 2021 Rating: 5

No comments:

Powered by Blogger.