Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
- Understanding 3D Transforms 2:42
- Activate 3D Space with perspective 6:47
- Create a Flipping Animation with 3D Transform Properties 10:09
- 3-Dimensional Rotations with rotateZ() and rotate3d() 4:47
- Changing the Viewing Position with perspective-origin 4:46
- 3D Transforms Challenge 2 objectives
- Creating a Consistent Depth Perspective 2:39
- Build a Rotating 3D Cube 9:31
- Moving Content with translate3d() 3:44
- Review: 3D Transforms 6 questions

- 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
Let's use CSS transitions and 3D transforms to make the photo gallery look 3D! In this video, you're going to create a 3D flip animation. You'll also learn a new property that gives you control over the behavior of nested elements in 3D space.
Resources
- Using CSS 3D transforms
- transform-style – MDN
- transform-style – WebKit demo
- backface-visibility – MDN
- cubic-bezier – WPD
Video review
- The 3D space you set applies to the direct children only.
- Other deeply nested elements will not live in the same 3D space, so they'll behave like 2D elements.
- For nested elements to behave like elements in 3D space, pass the 3D space down to them, using
transform-style
. -
transform-style: preserve-3d;
indicates that the children of the element should be positioned in the 3D space. - By default, the backside of an element is visible when facing the viewer.
- When elements are in 3D space, you can use
backface-visibility
to control whether or not you see an element's backside. -
backface-visibility: hidden;
hides the backside of a 3D-transformed element.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Kieran Mackey
2,271 Points2 Answers
-
Hagop Almadjian
Front End Web Development Techdegree Student 7,051 Points1 Answer
-
karan Badhwar
Web Development Techdegree Graduate 18,135 Points1 Answer
-
brandon supinski
Python Development Techdegree Graduate 27,983 Points1 Answer
-
Jake Almendarez
Front End Web Development Techdegree Student 4,250 Points1 Answer
-
Xiao DAI
1,474 PointsThe visual effects shown on video is different from transcript.
Posted by Xiao DAIXiao DAI
1,474 Points1 Answer
-
Miguel Sosa
Front End Web Development Techdegree Graduate 24,185 Points2 Answers
-
Samantha Atkinson
Front End Web Development Techdegree Graduate 40,307 PointsMy browser Chrome seems to be ignoring the backface-visibility: hidden;
6 Answers
-
Philip Smith
Front End Web Development Techdegree Graduate 17,622 Points8 Answers
-
John Cannon
Full Stack JavaScript Techdegree Student 3,161 Points0 Answers
-
ammarkhan
Front End Web Development Techdegree Student 21,661 Points2 Answers
-
Nour El-din El-helw
8,241 Points2 Answers
-
Lasse Pedersen
10,416 Points1 Answer
-
Nick East
7,671 Points1 Answer
-
Hakim Rachidi
38,490 Points1 Answer
-
PLUS
Shuming Li
Courses Plus Student 3,592 Points4 Answers
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