function setTransform(el, x, y, scale) {
  el.style.transform = toTransformString(x, y, scale);
}
Apply transform:translate(x, y) scale(scale) to element

@param {HTMLElement} el
@param {number} x
@param {number} [y]
@param {number} [scale]