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
It's common to use multiple transforms at once. The 'transform' property can accept as many functions as needed, so you can use and combine them any way you want.
Resources
Video review
- It's common to use multiple transforms at once.
- For example:
transform: rotate(-5deg) scale(1.1); - Define only one transform declaration in a rule, otherwise, the bottom-most declaration will override the transforms above.
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
It's common to use multiple
transforms at once.
0:00
For example, you might want to rotate and
0:03
scale the size of an element
at the same time.
0:05
Earlier we applied a small rotation
to the top row of images on hover.
0:08
I really liked how that looked, so
I'm going to add the rotation back in.
0:14
So I'll go back to interactions.css.
0:18
And in my image hover rule here,
0:22
I'm going to replace the translate
function with the rotate function.
0:26
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