From the course: CSS: Transforms and Transitions
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Multiple transformations in 3D - CSS Tutorial
From the course: CSS: Transforms and Transitions
Multiple transformations in 3D
- [Instructor] In the last video, I showed you how you can change your page objects using 3D transformations. In this video, we'll explore multiple transformation functions applied to 3D space. This demo page allows you to apply multiple 3D transformations in any order. So for example, I can translate this object horizontally along the x-axis, vertically along the y-axis, and then rotate the object around the x-axis. Now as with 2D transformations, order is crucial. These transformation functions are applied in the order of which they're listed. So for example, if I now move the object along the x-axis, it moves relative to the x-axis of the 3D space. And if I move it along the y-axis, it moves relative to the y-axis of the 3D space. But lets say I rotate it first and then translated it. Now when I move it, it's moving relative to the object's orientation in 3D space. Moving up and down means moving up and down in the direction in which the object has been rotated. Let's apply the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.