This page needs Javascript to work.

Create an element

/* The 'panel' class sets width and height.
   The 'red' class sets border and background color. */
var node = $dom.create('div.panel.red');
document.body.appendChild(node);

Animate

// "square" is the red squared absolute-positioned div
$dom.transform(square, { left: "150px", opacity: 0.2 });