Add solution to Use the CSS Transform Property skewY to Skew an Element Along the Y-Axis (#34483)

* Update index.md

* Add full solution
This commit is contained in:
The Coding Aviator
2019-03-20 03:42:33 +05:30
committed by Randell Dawson
parent bbfb01731e
commit df9bc7e1b5

View File

@ -3,8 +3,25 @@ title: Use the CSS Transform Property skewY to Skew an Element Along the Y-Axis
--- ---
## Use the CSS Transform Property skewY to Skew an Element Along the Y-Axis ## Use the CSS Transform Property skewY to Skew an Element Along the Y-Axis
This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/certifications/responsive-web-design/applied-visual-design/use-the-css-transform-property-skewy-to-skew-an-element-along-the-y-axis/index.md' target='_blank' rel='nofollow'>Help our community expand it</a>. ### Solution
<a href='https://github.com/freecodecamp/guides/blob/master/README.md' target='_blank' rel='nofollow'>This quick style guide will help ensure your pull request gets accepted</a>. ```html
<style>
div {
width: 70%;
height: 100px;
margin: 50px auto;
}
#top {
background-color: red;
transform: skewY(-10deg);
}
#bottom {
background-color: blue;
transform: skewX(24deg);
}
</style>
<!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds --> <div id="top"></div>
<div id="bottom"></div>
```