Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

dom.set_opacity

oatkiller edited this page Sep 13, 2010 · 2 revisions

set opacity on an element. takes a number between 0 and 10

(function () {

o.dom.set_opacity(document.body,1); // the body is really hard to see now
o.dom.set_opacity(document.body,8); // the body is almost opaque

})();
Clone this wiki locally