Opacity < Element

The Opacity function gets or sets the transparency level of an element. The opacity level is represented as a value from 0 to 1 where 1 means the element is fully visible and 0 means the element cannot be seen (full transparent). Below is an example:

var div = $Div("myDiv");
div.Opacity(0); // cannot see it!
div.Opacity(.5); // can see through it
div.Opacity(1); // completely visible

Last edited Mar 27, 2011 at 3:53 PM by dahrkdaiz, version 1


No comments yet.