CSS Value | Angle Last Updated : 24 Aug, 2022 Comments Improve Suggest changes Like Article Like Report The angle on CSS represents a certain angle value that can be expressed in degrees, gradians, radians, or turns. Angle value can be used for rotations, transformations or gradients, etc. Syntax: The angle consists of a number followed by one of the allowed units. property: number unit; Allowed units: deg: Represents an angle in degrees. One full circle is 360deg. Examples: 0deg, 90deg.grad: Represents an angle in gradians. One full circle is 400grad. Examples: 0grad, 38.8grad.rad: Represents an angle in radians. One full circle is 2π radians which approximate to 6.2832rad. 1rad is 180/π degrees. Examples: 0rad, 1.07rad.turn: Represents an angle in a number of turns. One full circle is 1turn. Examples: 0turn, 1.2turn. Example 1: using the deg unit to rotate an element by 90 degrees. html <!DOCTYPE html> <html> <meta charset="utf-8"> <head> <title>CSS | value angle</title> </head> <style> div{ transform: rotate(90deg); } </style> <body> <h1 style="text-align: center; color: green;">GeeksforGeeks</h1> <div style="width: 100px; height: 200px; margin-left: 46vw; background: green;"> </div> </body> </html> Output: Example 2: using the rad unit to rotate an element. html <!DOCTYPE html> <html> <meta charset="utf-8"> <head> <title>CSS | value angle</title> </head> <style> div{ transform: rotate(2rad); } </style> <body> <h1 style="text-align: center; color: green;">GeeksforGeeks</h1> <div style="width: 100px; height: 200px; margin-left: 46vw; background: green;"> </div> </body> </html> Output: Example 3: using the grad unit to rotate an element. html <!DOCTYPE html> <html> <meta charset="utf-8"> <head> <title>CSS | value angle</title> </head> <style> div{ transform: rotate(10grad); } </style> <body> <h1 style="text-align: center; color: green;"> GeeksforGeeks </h1> <div style="width: 100px; height: 200px; margin-left: 46vw; background: green;"> </div> </body> </html> Output: Example 4: using the turn unit to rotate an element. html <!DOCTYPE html> <html> <meta charset="utf-8"> <head> <title>CSS | value angle</title> </head> <style> div{ transform: rotate(1.25turn); } </style> <body> <h1 style="text-align: center; color: green;"> GeeksforGeeks</h1> <div style="width: 100px; height: 200px; margin-left: 46vw; background: green;"> </div> </body> </html> Output: Supported Browsers: Chrome 2Edge 12Firefox 3.6Opera 15Safari 4 Comment More infoAdvertise with us Next Article CSS Value | Angle taran910 Follow Improve Article Tags : Web Technologies CSS CSS-Basics Similar Reads Half Angle Formulas Half-angle formulas are used to find various values of trigonometric angles such as for 15°, 75°, and others, they are also used to solve various trigonometric problems.Several trigonometric ratios and identities help in solving problems of trigonometry. The values of trigonometric angles 0°, 30°, 4 6 min read Measuring Angles Measurement of angles is very important in geometry for solving various geometrical problems and comparing angles in various geometrical figures. We use various geometric tools such as a protractor, and a compass for measuring angles. There are various types of angles measured by us and before learn 7 min read CSS | Value Integer CSS data type integer represents <integer > .It is a whole number which can be positive(+) or negative(-) .Integer contains one or more than one digits between 0-9.No decimal value is allowed . No units are required to represent an integer value. A lot of CSS properties take integer value like 2 min read Angles Formula Angle is a space acquired between two intersecting lines. The angles are formed between the two lines known as arms and the point where an angle is formed is known as the vertex. The angle has its own unit of measurement, an angle can be measured in degrees or radians. An angle is purely a geometric 7 min read Straight Angle A straight angle measures 180° and looks as it is a straight line, therefore, it is a mathematical way of expressing a straight line. The two rays of the 180-degree angle are subtended towards the opposite direction, where the rays are joined to each other at endpoints.Well, that's what we call a st 7 min read Angles: Lesson for Kids Angles are formed when two rays meet at a common endpoint, called the vertex. Angle measures the rotation or "turning" between the two rays. Angles are a key concept in mathematics, especially in geometry, and are typically measured in degrees (°) or radians (rad).In this lesson, we'll learn about t 7 min read Angles Formulas Angle Formulas are the formulas that are used to find the measure of an angle. In geometry, an angle is an essential measurement of a geometric shape. An angle is defined as the degree of rotation about the point of intersection between two lines or planes that are required to bring one into corresp 8 min read Types of Angles Types of Angles: An angle is a geometric figure formed by two rays meeting at a common endpoint. It is measured in degrees or radians. It deals with the relationship of points, lines, angles, and shapes in space. Understanding different types of angles is crucial for solving theoretical problems in 10 min read CSS calc() Function The calc() function is an inbuilt CSS function used to perform calculations to determine CSS property values dynamically. This function allows combining different units, such as percentages and pixels, using basic arithmetic operations like addition, subtraction, multiplication, and division. This a 4 min read Fabric.js | Triangle angle Property In this article, we are going to see how to draw a fixed angled canvas Triangle using FabricJS. The canvas triangle means the triangle is movable and can be stretched according to requirement. Further, the triangle can be customized when it comes to initial stroke color, height, width, fill color, o 2 min read Like