Archive for May, 2008

Fading Effect with YUI’s Animation Utility

Posted on May 2, 2008
In YUI's Animation Utility example page there are demonstrations on how to create color and motion animations. However I couldn't find an example for how to create fading effect. After spending some time on trying different approaches, I came up with this code snip: function doFade(){ YAHOO.util.Dom.setStyle(document.body, 'opacity', '0'); var ani = new YAHOO.util.Anim(document.body , { opacity: {from: [...]

Categories

Polls

  • Your opinion about the design of this site:

    View Results

    Loading ... Loading ...