I have a simple transform class to apply translations, scales and rotations on a div in any arbitrary order:
class TransformDiv{ constructor(div) { this.