RE: Three new CSS properties: hit or miss?

You are viewing a single comment's thread:

you know what, we are no longer increasing the size of the box, so cancel that and just use this current declaration which is to rotate it by 10deg".

you did not get this statement well.

it should have been, you know what, a new order has been given from above that we should not just increase the size but let's turn the boat sideways.

because looking at the box2, the box is still enlarged and the previous command was not really overwritten but another command was added to it.

Awesome properties man! In some months time, I hope to come back working with HTML and Css again. Been a while since I used it or tried building the frontend of a website.



0
0
0.000
2 comments
avatar
.two:hover {
transform: rotate(10deg);
}

This was the code I was explaining when I made that statement. If you look at the picture, you will see that the box actually shrunk down to its default size when I hovered over it. But when I added scale(1.5) to the code, the box increased and rotates when I hover (which is exactly what you explained)

0
0
0.000
avatar

My bad, I didn't look at the image well.. Yeah the size actually reduced...

0
0
0.000