Full version: jsB@nk » Text » Animation » Growing Up Text
URL: https://www.javascriptbank.com/growing-up-text.html
Use this JavaScript code to create the text with size grow up.
Full version: jsB@nk » Text » Animation » Growing Up Text
URL: https://www.javascriptbank.com/growing-up-text.html
<script language="JavaScript">text=new Array('JavaScriptBank.com', 'Bank of over 2000+ free JavaScripts')var numText=4color=new Array('#000099','#0066ff','#00ccff','#00ffff','#ccffff')var numColors=5var endSize=52var Zspeed=200var Cspeed=250var font='Arial, Helvetica'var hide=truevar size=10var gonum=0if (document.all) {n=0ie=1zoomText='document.all.zoom.innerText=text[num]'zoomSize='document.all.zoom.style.fontSize=size'closeIt=""fadeColor="document.all.zoom.style.color=color[num]"}if (document.layers) {n=1;ie=0zoomText=""zoomSize="document.zoom.document.write('<p align=\"center\" style=\"font-family:'+font+'; font-size:'+size+'px; color:'+color[0]+'\">'+text[num]+'</p>')"closeIt="document.zoom.document.close()"fadeColor="document.zoom.document.write('<p align=\"center\" style=\"font-family:'+font+'; font-size:'+endSize+'px; color:'+color[num]+'\">'+text[numText-1]+'</p>')"}function zoom(num,fn){if (size<endSize){eval(zoomText)eval(zoomSize)eval(closeIt) size+=5;setTimeout("zoom("+num+",'"+fn+"')",Zspeed)}else{ eval(fn);}}function fadeIt(num){if (num<numColors){eval(fadeColor)eval(closeIt) num+=1;setTimeout("fadeIt("+num+")",Cspeed)}else{hideIt()}}function hideIt(){if(hide){if(ie)document.all.zoom.style.visibility="hidden"if(n)document.layers.zoom.visibility="hidden"}}function init(){if(ie){document.all.zoom.style.color=color[0]document.all.zoom.style.fontFamily=font}go(0)}function go(num){gonum+=1size=10if(num<numText){zoom(num,'go('+gonum+')')}else{fadeIt(0)}}</script><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<body onload="init()"><div id="zoom" align="center" style="position:relative;"></div></body><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->