Skip to content

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

setAlpha

Set both the Alpha Transparency of Text and Backgrounds maintaining inheritance overrides

var element = document.getElementById("test");
element.style.backgroundColor = "#000"; /* you need to set the background color first*/
element.setBackgroundAlpha(50); /* 50% transparency */

You can set all backgrounds and text to a default color by a rule like this

*{
background-color: #FFF;
color: #000;
}

Any element nested can also be change to it's own alpha transparency which was not possible with opacity css rule

About

Set both the Alpha Transparency of Text, Backgrounds and border maintaining cascading effect of css

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages