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
In this video, you will build a rotating 3D photo cube using CSS transitions and 3D transforms.
Important Update
Browser rendering for 3D transforms changed since we recorded this video. If your rotating 3D cube does not look and work as it does in the video, add the following properties to the CSS rule selecting each side in interactions.css
:
.front,
.back,
.left,
.right {
width: 100%;
height: 100%;
display: block;
position: absolute;
/* New CSS */
transform-style: inherit;
backface-visibility: hidden;
}
Resources
Video review
- The
translateZ()
function lets you move an element along its Z-axis; that is, towards and away from the viewer. - A negative
translateZ()
moves the element away from the viewer on the Z-axis, while a positive value moves the element towards the viewer.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Nnanna Okoli
Front End Web Development Techdegree Graduate 19,181 Points1 Answer
-
Sherrie Jeffers
Front End Web Development Techdegree Student 7,909 Points4 Answers
-
karan Badhwar
Web Development Techdegree Graduate 18,135 Points2 Answers
-
nicolaspeterson
8,569 Points1 Answer
-
Lisa Walters
Front End Web Development Techdegree Graduate 15,255 Points4 Answers
-
PLUS
ALEKSANDAR TODOROVSKI
Courses Plus Student 8,508 Points2 Answers
-
Muaaz Matwadia
Full Stack JavaScript Techdegree Graduate 19,327 Points0 Answers
-
Jake Almendarez
Front End Web Development Techdegree Student 4,250 Points1 Answer
-
Raj Shinghanya
Front End Web Development Techdegree Student 77 Points1 Answer
-
Sam Weeks
Front End Web Development Techdegree Student 16,699 Points1 Answer
-
joeyh
Front End Web Development Techdegree Graduate 13,065 Points1 Answer
-
Unsubscribed User
6,269 Points4 Answers
-
Zach Handler
Web Development Techdegree Student 5,332 Points1 Answer
-
Jay Hinds
Treehouse Project Reviewer3 Answers
-
PLUS
Aldwin Karl Benitez
Front End Web Development Techdegree Graduate 16,151 PointsSo your work space is kinda messed up.
2 Answers
-
Kent Hefley
11,217 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