Skip to content

arieh/Element.setRGBA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Element.setRGBA

This is a simple method that sets RGBA background on elemenets. Method inspired by this article

How to use

The method can receive 2 types of argument sets:

CSS3 rgba values:

#JS
el.setRGBA(123,234,22,0.5);

Hex/alpha pairs:

#JS
el.setRGBA('#aa00cc',0.6);

note - hex value must be a 6 digit hex value

About

a mootools method for setting rgba backgrounds in a cross-browser fashion

Resources

Stars

Watchers

Forks

Packages

No packages published