Lesson 21 of 50
cssTransforms
10 mins
Course progress42%
What you'll learn
Keep this idea in mind as you work through the lesson.
Lesson 21 of 50
css10 mins
Keep this idea in mind as you work through the lesson.
Transforms change the visual rendering of an element without affecting layout.
transform: translateX(20px) rotate(15deg) scale(1.2);
3‑D transforms add perspective and rotateX/Y/Z.
.card { perspective:1000px; }
.inner { transition:transform .6s; transform-style:preserve-3d; }
.card:hover .inner { transform:rotateY(180deg); }