Value of DEG CSS

Asked

Viewed 152 times

0

How many px amounts to 1deg?

In this case, if you have this conversion. Or in this case, how to work with it.

deg in the case that we use in CSS Transform.

  • 100px corresponds to 20.25 degrees.

1 answer

1


I don’t know a conversion of deg for px, because in my head it doesn’t make sense. The deg or degrees, is the measure for angles and degrees is nothing more than degrees in English. It is used in Transform specifically for rotation in degrees, as in the example below:

.exemplo {
  -webkit-transform: rotate(360deg);
  -moz-transform: rotate(360deg);
  -o-transform: rotate(360deg);
  -ms-transform: rotate(360deg);
  transform: rotate(360deg);
}

What is happening is that the class object "example" will be rotated 360 degrees, that is, it will turn full clockwise.

  • Ah, now I get it. I had no idea it was degrees, now it makes more sense kk, Thank you!

  • @Lucascarvalho Tranquil! Good luck there! :)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.