Team:Grenoble/script
From 2012.igem.org
(Difference between revisions)
Line 78: | Line 78: | ||
this.to=a!==undefined?a:1; | this.to=a!==undefined?a:1; | ||
var e=this.elem.style; | var e=this.elem.style; | ||
+ | this.from=(b===undefined?(!e.opacity&&e.opacity!==0?(this.to>0?0:1):parseFloat(e.opacity)):b); | ||
+ | d=d||{}; | ||
+ | this.duration=d.duration||500; | ||
+ | this.frameRate=d.frameRate||30; | ||
+ | this.onFinish=d.onFinish; | ||
} | } | ||
Revision as of 15:39, 11 July 2012