Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
webciter authored May 5, 2019
1 parent 85da933 commit 750c8d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Set both the Alpha Transparency of Text and Backgrounds maintaining inheritance

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

Expand Down

0 comments on commit 750c8d9

Please sign in to comment.