ควิซ HTML & CSS: Transitions & Animations

This CSS quiz covers transition, @keyframes and the animation properties. You will decide what animates, what jumps, how long things take and which properties are cheap for the browser to animate.

ปานกลาง 10 ข้อ ~6 นาที ผ่านที่ 80%

เลือกโหมด

กำลังเล่นแบบผู้เยี่ยมชม: เข้าสู่ระบบเพื่อเก็บ XP และ streak

ตัวอย่างคำถาม

ข้อ 1 จาก 10

In this declaration, what does 1s mean?

.btn { transition: background-color 0.3s ease 1s; }
ดูเฉลย

B. The color change waits 1 second before it starts In the transition shorthand the first time value is the duration and the second is the delay. So the change starts after 1 second and then takes 0.3 seconds.

ควิซนี้มีเนื้อหาอะไรบ้าง

  • The transition shorthand: property, duration, timing function, delay
  • Why height: auto and transitions only in :hover surprise people
  • @keyframes with animation-direction, animation-fill-mode and steps()
  • Animating transform and opacity for smooth performance
  • Respecting prefers-reduced-motion

คำถามที่พบบ่อย

ต้องมีบัญชีไหม?

ไม่ต้อง ใครก็เล่นได้ เข้าสู่ระบบเพื่อเก็บ XP, streak, เหรียญตรา และประวัติ

ทำซ้ำได้ไหม?

ได้ ระบบเก็บคะแนนที่ดีที่สุดไว้ และสลับคำถามกับตัวเลือกใหม่ทุกครั้ง