Answers for "set rotation of img in css"

CSS
2

set rotation of img in css

transform: rotate(180deg);
Posted by: Guest on November-17-2020
4

how to rotate image in css

div {
  position: absolute;
  left: 40px;
  top: 40px;
  width: 100px;
  height: 100px;
  background-color: lightgray;
}

.rotate {
  background-color: transparent;
  outline: 2px dashed;
  transform: rotate(45deg);
}

.rotate-translate {
  background-color: pink;
  transform: rotate(45deg) translateX(180px);
}

.translate-rotate {
  background-color: gold;
  transform: translateX(180px) rotate(45deg);
}
Posted by: Guest on January-28-2020

Browse Popular Code Answers by Language