Show I use absolute position or transform to move a <div>
around the page?
I seem to recall reading that moving objects using position such as:
dialog.style.bottom = "100px";
is slower and it is preferable to use transform to move the object instead:
dialog.style.transform = "translateY(100px);
However as I also have a CSS transition in place:
transition: 2s
does that make any difference, is transform still preferred over position or are they both the same now?