The idea
You can list several transform functions in one declaration, and they apply right-to-left. translate(40px, 20px) rotate(45deg) rotates first, then translates — swap the order and you get a different result. Match the target by chaining a translate and a rotate.
Resizing and repositioning are off-limits: the target's position and size must come from a chained transform.