Login Register

LFX

The dojo.lfx.* module is dojo's animation system. It includes many “canned� effects:

  • fadeIn, fadeShow, fadeOut, fadeHide,
  • wipeIn, wipeOut
  • slideTo
  • explode, implode
  • highlight, unhighlight
In addition, it has a powerful system for chaining together primitives:

// wipe two elements out, one after

// the other, following a 300ms delay
var anim1 = dojo.lfx.wipeOut(�foo�, 300);

var anim2 = dojo.lfx.wipeOut(�bar�, 500);

var composed = dojo.lfx.chain(anim1, anim2);

composed.play(300);
// fade out three nodes together, using

// acceleration
dojo.lfx.fadeOut(

[�foo�, “bar�, “baz�],

300,

dojo.lfx.easeInOut

).play();