-
Notifications
You must be signed in to change notification settings - Fork 4.4k
[term entry]Transform3d() #8270
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,107 @@ | ||||||||
| --- | ||||||||
| Title: 'translate3d()' | ||||||||
| Description: 'it allows HTML developers to rotate, translate, scale and skew along the X,Y,and Z axes' | ||||||||
| Subjects: | ||||||||
| - 'Web Development' | ||||||||
| - 'Web Design' | ||||||||
| - 'Computer Science' | ||||||||
|
Comment on lines
+5
to
+7
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The tags should be written in alphabetical order |
||||||||
| Tags: # | ||||||||
| - 'Browser compadibility' | ||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. typo: "Browser Compatibility" |
||||||||
| - 'Design' | ||||||||
| - 'Development' | ||||||||
| CatalogContent: | ||||||||
| - 'learn-css' | ||||||||
| - 'paths/Front-End Engineer Career Path | ||||||||
| --- | ||||||||
|
|
||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here an intro para is needed that defines the term and its uses |
||||||||
| ## Syntax | ||||||||
|
|
||||||||
| ```pseudo | ||||||||
| translate3d( tx, ty, tz ) | ||||||||
| ``` | ||||||||
| The "translate3d()" function is a inbuilt function which is used to reposition an element in 3D space: | ||||||||
|
|
||||||||
| tx: This parameter holds the length of the translation corresponding to the x-axis. This parameter holds the value in form of number or percentage. | ||||||||
|
|
||||||||
| ty:This parameter holds the length of translation corresponding to the y-axis. This parameter holds the value in form of number or percentage. | ||||||||
|
|
||||||||
| tz:This parameter holds the length of translation corresponding to z-axis. This parameter holds the value in form of numbers only. | ||||||||
|
Comment on lines
+24
to
+28
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These should be represented in bullets as: Parameters:
|
||||||||
|
|
||||||||
| ## Example | ||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
|
|
||||||||
| example 1: | ||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| <!DOCTYPE html> | ||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Before the code we need a description explaining what the code is actually doing. Also, wrap the code in |
||||||||
| <html> | ||||||||
|
|
||||||||
| <head> | ||||||||
| <title> | ||||||||
| CSS translate3d() function | ||||||||
| </title> | ||||||||
| <style> | ||||||||
| body { | ||||||||
| text-align: center; | ||||||||
| } | ||||||||
|
|
||||||||
| h1 { | ||||||||
| color: green; | ||||||||
| } | ||||||||
|
|
||||||||
| .translate3d_image { | ||||||||
| transform: translate3d(100px, 0, 0); | ||||||||
| } | ||||||||
| </style> | ||||||||
| </head> | ||||||||
|
|
||||||||
| <body> | ||||||||
| <h1>GeeksforGeeks</h1> | ||||||||
| <h2>CSS translate3d() function</h2> | ||||||||
|
|
||||||||
| <h4>Original Image</h4> | ||||||||
| <img src= | ||||||||
| "https://media.geeksforgeeks.org/wp-content/cdn-uploads/20190710102234/download3.png" | ||||||||
| alt="GeeksforGeeks logo"> | ||||||||
| <br> | ||||||||
|
|
||||||||
| <h4>Translated image</h4> | ||||||||
| <img class="translate3d_image" | ||||||||
| src= | ||||||||
| "https://media.geeksforgeeks.org/wp-content/cdn-uploads/20190710102234/download3.png" | ||||||||
| alt="GeeksforGeeks logo"> | ||||||||
| </body> | ||||||||
|
|
||||||||
| </html> | ||||||||
|
|
||||||||
| example 2: | ||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| <!DOCTYPE html> | ||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Before the code we need a description explaining what the code is actually doing. Also, wrap the code in |
||||||||
| <html> | ||||||||
| <head> | ||||||||
| <title>CSS translate3d() function</title> | ||||||||
| <style> | ||||||||
| body { | ||||||||
| text-align:center; | ||||||||
| } | ||||||||
| h1 { | ||||||||
| color:green; | ||||||||
| } | ||||||||
| .GFG { | ||||||||
| font-size:35px; | ||||||||
| font-weight:bold; | ||||||||
| color:green; | ||||||||
| } | ||||||||
| .geeks { | ||||||||
| transform: translate3d(100px, 20px, 0); | ||||||||
| } | ||||||||
| </style> | ||||||||
| </head> | ||||||||
|
|
||||||||
| <body> | ||||||||
| <h1>GeeksforGeeks</h1> | ||||||||
| <h2>CSS translate3d() function</h2> | ||||||||
|
|
||||||||
| <h4>Original Element</h4> | ||||||||
| <div class="GFG">Welcome to GeeksforGeeks</div> | ||||||||
|
|
||||||||
| <h4>Translated Element</h4> | ||||||||
| <div class="GFG geeks">Welcome to GeeksforGeeks</div> | ||||||||
| </body> | ||||||||
| </html> | ||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. At the end of both examples, the output images are to be linked. Place the images in the media folder in docs and link them here. (for both examples) |
||||||||
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.
The description should start with a verb