Home > Web Front-end > CSS Tutorial > Use of CSS transform properties

Use of CSS transform properties

WBOY
Release: 2023-09-01 11:17:02
forward
689 people have browsed it

CSS 变换属性的使用

#The transform property in CSS is used to apply a 2D or 3D transformation to an element. You can try running the following code to implement the conversion property -

Example

Live Demonstration

<!DOCTYPE html>
<html>
   <head>
      <style>
         div {
            width: 200px;
            height: 100px;
            background-color: gray;
            transform: rotate(10deg);
         }
      </style>
   </head>
   <body>
      <h1>Rotation</h1>
      <div>Demo</div>
   </body>
</html>
Copy after login

The above is the detailed content of Use of CSS transform properties. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template