Core Docs | Additional Modules Docs

Element.prototype.setOpacity


@Description: Sets the opacity of the element
@File: Element/prototype/setOpacity.js
@Param: Float o Optional arguemnt specifies the percentage ocapcity. 0.0 is 100% transparent and 1.0 is 100% opaque.
@Return: returns itself
@Example:
myElement.setOpacity(0.3);
//sets the elements opacity to 0.3