Get the App
SLTechnology News&Howtos  ›  Development  › 

How to rotate Image by css3

Shulou Source: shulou.com Published: 2022-06-02 10:24:59 11月15日 Update

This article is to share with you about css3 how to achieve rotating images, the editor feels very practical, so share with you to learn, I hope you can get something after reading this article, say no more, follow the editor to have a look.

Code block

Html page:

Rotate image

The pulpit rock inLysefjorden,Norway.

Monterosso al Mare. One of the five villages in Cinque Terre.

Css style:

Body {

Margin:30px

Background-color: # E9E9E9

}

Div.polaroid {

Width: 294px

Padding: 10px 10px 20px 10px

Border:1px solid # BFBFBF

Background-color: # F0F8FF

Box-shadow: 4px 4px 6px # aaa

Border-radius: 5px

}

Div.rotate_left {

Float: left

-ms-transform:rotate (7deg)

-webkit-transform:rotate (7deg)

Transform:rotate (7deg)

}

Div.rotate_right {

Float: left

-ms-transform:rotate (- 10deg)

-webkit-transform:rotate (- 10deg)

Transform:rotate (- 10deg)

}

This is how css3 rotates the image. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Tags: Images more knowledge articles utility code that is work meetings articles styles look knowledge points industry details information information channels follow parts pages channels Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Shulou Tech Info Xiaomi Linux Shulou Technology