0
0
Fork 0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2025-02-20 20:38:45 +00:00
salesagility_SuiteCRM/include/ytree/TreeView/anim/TVFadeIn.js
2013-09-23 20:30:44 +01:00

2 lines
No EOL
516 B
JavaScript
Executable file

/* Copyright (c) 2006 Yahoo! Inc. All rights reserved. */
YAHOO.widget.TVFadeIn=function(el,callback){this.el=el;this.callback=callback;this.logger=new ygLogger("TVFadeIn");};YAHOO.widget.TVFadeIn.prototype={animate:function(){var tvanim=this;var s=this.el.style;s.opacity=0.1;s.filter="alpha(opacity=10)";s.display="";var dur=0.4;var a=new YAHOO.util.Anim(this.el,{opacity:{from:0.1,to:1,unit:""}},dur);a.onComplete.subscribe(function(){tvanim.onComplete();});a.animate();},onComplete:function(){this.callback();}};