public
Created

  • Download Gist
growText.js
JavaScript
1 2 3 4 5 6 7 8 9 10 11 12 13
var h1 = document.getElementById('awesome');
h1.style.fontSize = '0';
var grow = (function growText(){
var size = parseInt(h1.style.fontSize, 10);
size++;
h1.style.fontSize = size + 'px';
 
if (size < 64) {
setTimeout(growText, 15);
}
}
)();

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.