-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Create rotateY entry for CSS #7525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a few comments for you to work on @arisdelacruz, please do the changes and ping me once they are done.
|
|
||
| The `rotateY()` function is a CSS transform function that allows you to rotate an element around the Y-axis (the vertical axis) in 3D space. This function is particularly useful for creating 3D effects and animations on web pages. | ||
|
|
||
| ### Syntax |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use H2 for syntax
| transform: rotateY(angle); | ||
| ``` | ||
|
|
||
| ### Parameters |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to use h3 for parameters instead you can write it like:
**Parameters:**
|
|
||
| - `angle`: The angle of rotation, which can be specified in degrees (deg) or radians (rad). Positive values rotate the element clockwise, while negative values rotate it counterclockwise. | ||
|
|
||
| ### Example |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This have to be h2
| transform: rotateY(45deg);} | ||
| ``` | ||
|
|
||
| In this example, the element with the class `box` will be rotated 45 degrees around the Y-axis. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you create and attach a gif and image to showcase what the above code block does?
|
|
||
| In this example, the element with the class `box` will be rotated 45 degrees around the Y-axis. | ||
|
|
||
| ### Browser Compatibility |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for a separate header for this instead use the note feature like:
> **Note:**
Description
This is an attempt to create the rotateY entry for CSS.
Issue Solved
Closes #7496
Type of Change
Checklist
mainbranch.Issues Solvedsection.