transition first translate then rotate css code example
Example: in object transform translate property concat with rotate value angular 7
[ngStyle]="{'transform': 'translate(' + $x + 'px, ' + $y + 'px)'}"
[ngStyle]="{'transform': 'translate(' + $x + 'px, ' + $y + 'px)'}"