Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

rotate element css

div {
  width: 80px;
  height: 80px;
  background-color: skyblue;
}

.rotated {
  transform: rotate(45deg); /* Equal to rotateZ(45deg) */
  background-color: pink;
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #rotate #element #css
ADD COMMENT
Topic
Name
3+7 =