blinking text

by ian_smithz

HTML

<h1>text</h1>

<p>Could develop this further to animate some snow</p>

CSS

h1 { color: red; }
h1.blinking { color: blue; }

h1 {font-size: 3em}

JavaScript

var el = $('h1');
setInterval(function() {
   el.toggleClass('blinking');
}, 1000);