Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
- Rotating Elements 4:37
- Animating a CSS Transform 4:22
- Skewing Content 3:48
- Scaling Elements 3:12
- Changing the Transform Position with transform-origin 7:01
- Moving Content with translate() 4:55
- Creating a Slide Transition 5:39
- Combining Transforms 3:36
- CSS Transforms Challenge 2 objectives
- Custom Timing Functions with cubic-bezier() 6:43
- Review: Getting Started with CSS Transforms 7 questions
Start a free Courses trial
to watch this video
![](https://videos.teamtreehouse.com/stills/TH-CSS_TransitionsAndTransforms_S3V5-stills-1.jpg?token=6991e79b_16bc00ed2d3b786fd72bf5e1541643406004355a)
- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
The default transform origin of an HTML element is its center, so the transform functions we apply move elements according to this center point. We can modify the spot at which the element is scaled or rotated using the 'transform-origin' property.
Resources
Video review
- The default transform origin of an HTML element is its center, or
50% 50%
. -
transform-origin
is a separate CSS property; you add it to the element you're transforming. -
transform-origin
accepts values as length units, percentages, or position keywords. - In
transform-origin
, the first value sets the horizontal origin, and the second value sets the vertical origin. - The value
0 0
moves the origin to the element's top-left corner. - The value
100% 100%
positions the origin at the furthest point on the X axis and the furthest point on the Y axis––orbottom right
.
Related videos
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Silvia Ramos
Front End Web Development Techdegree Graduate 18,318 Points3 Answers
-
Nikos Papapetrou
6,305 Points1 Answer
-
Obe Juarez
6,357 Points1 Answer
-
Nour El-din El-helw
8,241 Points1 Answer
-
Gari Merrifield
9,598 Points1 Answer
-
armand Rodriguez
7,830 Points2 Answers
-
Learning coding
Front End Web Development Techdegree Student 9,937 Points2 Answers
-
rachaelallison
9,521 Points2 Answers
-
COTY HSU
3,113 Points<img> style
Posted by COTY HSUCOTY HSU
3,113 Points1 Answer
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
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