B. Incorrect property name, should be transition-timing
C. Value linear is invalid
D. Missing semicolon after transition-duration
Solution
Step 1: Check CSS property syntax
CSS properties require a colon : between property and value.
Step 2: Locate error in snippet
The line transition-timing-function linear; misses the colon after the property name.
Final Answer:
Missing colon after transition-timing-function -> Option A
Quick Check:
Property-value pairs need colon [OK]
Hint: CSS properties always need colon between name and value [OK]
Common Mistakes:
Omitting colon after property name
Confusing property names
Assuming semicolon is optional
5. You want a button's background color to change smoothly over 0.5 seconds, starting fast and slowing down at the end. Which transition-timing-function should you use?
hard
A. ease-in-out
B. ease-in
C. linear
D. ease-out
Solution
Step 1: Understand timing function meanings
ease-out means the animation starts fast and slows down at the end, exactly what is needed.
Step 2: Compare other options
ease-in is slow start, fast end; linear is constant speed; ease-in-out is slow start and end with fast middle.