1
I’m trying to manipulate a background with onmouseover
/onmouseout
and I came across the following question:
How the CSS syntax below would look in Javascript?
background-image: linear-gradient( to top, rgba(23,35,34,0.55), transparent);
I’ve tried this, among other variations but I couldn’t make it work...
var barra_off = document.getElementById("idboxControl");
function func_barra_off(){
barra_off.style.backgroundImage ="linearGradient( to top,rgba(23,35,34,0), transparent);"
barra_off.style.webkitTransition ="0.5s ease-out";
}
Someone?
Thanks Sam! Super didactic your explanation. Solved :D
– jeznunes