Hi I’ve been strugling on how to achieve this simple question which I know how to solve it in python but I would like to implemented in javascript with Corvid, so here we go:
I would like to chnage dynamicaly the opacity of a box using a slider I 've configured with a range from 0-1 , the same that opacity property needs.
So here is my code, but is not working because the variable is not being read.
$w.onReady( function() {
let myValue = $w("#slider1").value;
} );
$w.onReady( function() {
$w('#CoverAfter').style.backgroundColor = "rgba(0,0,0,myValue)";
} );
Thanks in advance!