Fijate si te sirve algo así:
Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Ejemplo</title>
<script>
function css(propiedad, valor){
if(!valor)
return this.style[propiedad];
this.style[propiedad]=valor;
}
function easing(inicio,fin,coef,propiedad,medida,pausa){
var tmp=[];
if(!medida)medida='';
css.call(this,propiedad,inicio+medida);
var _this=this;
this.pausa=pausa;
var test=0;
var intervalo=setInterval(
function(){
tmp[test]=_this.val;
if(test>1 && tmp[tmp.length-2]==tmp[tmp.length-1]){
_this.val=fin;
css.call(_this,propiedad,_this.val+medida);
clearInterval(intervalo);
return;
}
test++;
document.getElementById('log').innerHTML=test;
_this.val=parseFloat(css.call(_this,propiedad))+(fin-parseFloat(css.call(_this,propiedad)))*coef;
css.call(_this,propiedad,_this.val+medida);
},this.pausa);
}
function $(id){return document.getElementById(id);}
onload=function(){
easing.call($('pp'),10,400,.09,'width','px',10);
easing.call($('pp'),10,400,.09,'height','px',10);
}
</script>
</head>
<body>
<div id="pp" style=" background-color:orange; color:#FFF; display:block; ">fffffff</div>
<div id="log"></div>
</body>
</html>