- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Usage of transform property with CSS
The transform property in CSS is used to apply a 2D or 3D transformation to an element. You can try to run the following code to implement the transform property −
Example
<!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>
- Related Articles
- Usage of transform-origin property with CSS
- Usage of transform-style property with CSS
- Usage of text-transform property in CSS
- Usage of border property with CSS
- Usage of width property with CSS
- Usage of height property with CSS
- Usage of margin property with CSS
- Usage of -moz-opacity property with CSS
- Usage of margin-top property with CSS
- Usage of margin-bottom property with CSS
- Usage of margin-right property with CSS
- Animate transform property with CSS Animation
- Animate transform-origin property with CSS Animation
- Usage of CSS perspective property
- Usage of CSS visibility property

Advertisements