Css transform rotation


#1

Hi, I made application with map and geolocate position. I want display arrow who indicate if we go in good or wrong direction. I have dregree for direction, but can’t find how use css tranform rotation degree.

Like this: " transform: rotate(7deg);".

Thanks for your help


Ionic rotate ionicons / arrows
#2

After many search I found the solution…

In my template use: [style.transform]="degreeStyle"
and in typescript simply use: this.degreeStyle = ‘rotate(’ + pourcentageVarHere + ‘deg)’;

Update degreeStyle when you need.


#3

Excellent bro… love u…it worked fine…