How to change group/shape size dynamically?

Taking advantage of the friend’s question above, would you know if it is possible using CSS? It is like!? I’m using javascript with document.getElementById(“myTask”).style.width = " px"; but it has not served me in an RG he is modifying the only elemt. timeline idea

make the changes but in the same element:

does not work: