From 750c8d91b52ed380cdb796674f6c2284bc712195 Mon Sep 17 00:00:00 2001 From: David Clews <30339448+webciter@users.noreply.github.com> Date: Sun, 5 May 2019 18:47:50 +0100 Subject: [PATCH] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 111e4d5..82feb3a 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ Set both the Alpha Transparency of Text and Backgrounds maintaining inheritance
var element = document.getElementById("test"); +element.style.backgroundColor = "#000"; /* you need to set the background color first*/ element.setBackgroundAlpha(50); /* 50 transparency */