CSS | skewY() Function
The skewY() function is an inbuilt function which is used to transform an element in the vertical direction in a 2D plane.
Syntax:
skewY( a )
Parameters: This function accepts single parameter a which holds the angle representing the vertical axis.
Below examples illustrate the skewY() function in CSS:
Example 1:
<!DOCTYPE html> <html> <head> <title>CSS skewY() function</title> <style> body { text-align:center; } h1 { color:green; } .skewY_image { transform: skewY(30deg); } </style> </head> <body> <h1>GeeksforGeeks</h1> <h2>CSS skewY() function</h2> <br><br> <img class="skewY_image" src= alt="GeeksforGeeks logo"> </body> </html> |
Output:

Example 2:
<!DOCTYPE html> <html> <head> <title>CSS skewY() function</title> <style> body { text-align:center; } h1 { color:green; } .GFG { font-size:35px; font-weight:bold; color:green; transform: skewY(-20deg); } </style> </head> <body> <h1>GeeksforGeeks</h1> <h2>CSS skewY() function</h2> <div class="GFG">Welcome to GeeksforGeeks</div> </body> </html> |
Output:

Supported Browsers: The browsers supported by skewY() function are listed below:
- Google Chrome
- Internet Explorer
- Firefox
- Safari
- Opera
Recommended Posts:
- PHP | ImagickDraw skewY() Function
- How to call a function that return another function in JavaScript ?
- How to get the function name from within that function using JavaScript ?
- How to get the function name inside a function in PHP ?
- PHP | pi( ) Function
- PHP | Ds\Set xor() Function
- PHP | pow( ) Function
- PHP | each() Function
- PHP | Ds\Map xor() Function
- PHP | Ds\Map put() Function
- D3.js | d3.max() function
- PHP | key() Function
- p5.js | tan() function
- CSS | rgb() Function
- p5.js | box() Function
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



