Skip to content
Learn Netverks

Lesson

Step 28/31 90% through track

motion-and-transitions

Motion, transitions, and respect for users

Last reviewed Jun 1, 2026 Content v20260601
Track mode
iframe_html
Means
HTML preview sandbox
Reading
~1 min
Level
intermediate

This lesson

This lesson teaches Motion, transitions, and respect for users—the ideas, syntax, and habits you need before moving on in HTML & CSS.

Without a solid grasp of Motion, transitions, and respect for users, you will repeat mistakes in HTML & CSS exercises and on real pages or scripts.

You will apply Motion, transitions, and respect for users in contexts like: Landing pages, dashboards, marketing sites, and portfolio pieces built without a framework.

Read the lesson, edit HTML/CSS in the playground, press Run to preview, then answer the lesson MCQs.

Toward the end of the track—use it to consolidate patterns before the capstone or summary lessons.

Subtle motion guides attention: hover states, pressed buttons, expanding panels. Experienced developers pair motion with accessibility—not everyone wants animation.

Safe defaults

  • Animate transform and opacity when possible (often smoother than layout properties).
  • Keep durations short (roughly 120–250ms for UI feedback).
  • Honor @media (prefers-reduced-motion: reduce) to disable or simplify motion.

HTML hook

Use real elements (button, details) so keyboard users get behavior without custom JavaScript—CSS enhances state.

Challenge

Reduced-motion fallback

  1. Add a transition on button hover.
  2. Add a prefers-reduced-motion block that sets transition: none.
  3. Test in DevTools → Rendering → emulates reduced motion.

Done when: hover still changes color instantly when reduced motion is on.

Go deeper — Performance note (intermediate / experienced)

Animating width, height, or top can trigger layout on every frame. Prefer transform: scale() or translate for chips and cards. For complex timelines, CSS animations or JS-driven motion libraries may be appropriate—still gate behind reduced motion.

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Playground

Runs in your browser in a sandboxed frame. Backend runners appear when this track’s profile allows them.

Check yourself

Multiple choice — immediate feedback.

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • What part of this lesson needs a second read?
  • What would you try differently in a real project?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump