How to scale and rotate in css

WBOY
Release: 2021-12-03 10:04:00
Original
3030 people have browsed it

In CSS, you can use the transform attribute to achieve the rotation and scaling effects of elements. The syntax is "element {transform:scale (horizontal scaling value, vertical scaling value); transform:rotate (rotation angle value); }".

How to scale and rotate in css

The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.

How to scale and rotate css

In css, you can use the transform attribute to set the scaling and rotation of the element. The function of this attribute is to adjust the element. Rotate, scale, move or tilt operations.

1. Scaling

When the value of transform is scale(), the element can be scaled. The example is as follows:

    
Hello World
Copy after login

Output results :

How to scale and rotate in css

2. Rotation

When the value of transform is rotate(), you can set the element rotation operation. The example is as follows:

    
Hello World
Copy after login

Output result:

How to scale and rotate in css

(Learning video sharing:css video tutorial)

The above is the detailed content of How to scale and rotate in css. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
css
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!