Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed CSS Transitions and Transforms!
You have completed CSS Transitions and Transforms!
Preview
When you skew an element, it gives the transformed element a slanted appearance. In this video, you'll learn how to use skew functions to distort elements horizontally and vertically.
Resources
Video review
-
skewX()applies a horizontal skew to an element. -
skewY()applies a vertical skew to an element. - A negative value skews the content in the opposite direction.
- The skew functions, like other transform functions, will transform all the children of an element.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
on the horizontal left to right axis and
on the vertical up and down axis.
0:00
So when you skew an element, it gives
the transformed element a slanted or
0:02
twisted appearance like in this example.
0:07
So notice how the div on
the left tilts horizontally and
0:10
the div on the right is
distorted vertically.
0:14
So I can apply a horizontal skew to any
element with the skewX transform option.
0:19
So let's see what applying a skew to
the images here on Hover looks like.
0:27
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up