Trending News
Home / Web Development / HTML / How to make Blinking the text/button/div in html5 and Javascript

How to make Blinking the text/button/div in html5 and Javascript

The blinker() function helps to blink text/div/button etc.. Set the fadein and fadeout time in blinker(). Also set the timeinterval.
demo



Blinking code

<button class=”blink_me” >This will blink </button>
<script src=”http://code.jquery.com/jquery-1.9.1.js”></script>
<script>
function blinker()
{
$(‘.blink_me’).fadeOut(500);
$(‘.blink_me’).fadeIn(500);
}
setInterval(blinker,1000);
</script>

Loading Facebook Comments ...
Social Media Auto Publish Powered By : XYZScripts.com