consider the following code:
var yum: HTMLElement;
var bin: Element;
yum = document.createElement('p');
var y: Node = yum.cloneNode(true);
bin.appendChild(y);
y.style.display = 'none'; //fails Error 2 Cannot convert 'Node' to 'HTMLElement': Type 'Node' is missing property 'click' from type 'HTMLElement'
of course this fails as cloneName returns Node and not HTMLElement and if you try what to convert manually from Node to HTMLElement then the same error occurs. So I stuck as I do not see a way to change the opacity. Now this is javascript I was trying to move into Typescript.