Skip to main content
Brave Programmer Logo

BraveProgrammer

BraveProgrammer

HomeProjectsBlogsCoursesLessonsAbout

Site footer

BraveProgrammer

Free coding courses, practical tutorials, and real projects from BraveProgrammer. Learn web development with React, Next.js, and TypeScript.

Navigation

  • Home
  • Projects
  • Blogs
  • Courses

Resources

  • About
  • Lessons
  • Teach on BraveProgrammer

© 2026 BraveProgrammer. All rights reserved.

Transforms | CSS Course lesson | BraveProgrammer
  1. Courses
  2. /
  3. CSS Course

Lesson 21 of 50

·css

Transforms

10 mins

Course progress42%

What you'll learn

Keep this idea in mind as you work through the lesson.

1 point
  • `transform` creates a new **stacking context**. * `translate` moves an element without affecting the document flow. * `rotate`, `scale`, `skew` are common for UI motion. * Use `transform-origin` to control the pivot point.
  • 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.


    Example: 3‑D card flip

    .card { perspective:1000px; }
    .inner { transition:transform .6s; transform-style:preserve-3d; }
    .card:hover .inner { transform:rotateY(180deg); }
    
    Make it stickPractice what you've learned1 quiz · 6 practical tests · Optional activities from CSS CourseBrowse activities
    Previous lessonTransitionsContinue to lesson 22Keyframe AnimationsBack to CSS Course curriculum