Entry & Exit Transitions — exercises and bug fixes
5 hands-on exercises and 5 find-the-bug challenges for the Entry & Exit Transitions lesson. Every one is checked automatically in the browser — write the code, run it, and the tests tell you what still fails.
Exercises(5)
- 1
Allow discrete transitions
easy10 minLet #box transition discrete properties such as display.
- 2
Transition display
easy10 minMake display the transitioned property on #box.
- 3
Transition two properties
easy10 minTransition opacity and display, in that order.
- 4
Give each its own duration
easy10 min0.3s for the first property and 0.5s for the second.
- 5
Build a full exit transition
medium10 minFade out and remove from layout, allowing discrete steps.
Find the bug(5)
- 1
Fix the missing discrete behaviour
easy8 mindisplay will not transition without allow-discrete.
- 2
Fix the misspelled value
easy8 minThe value is allow-discrete.
- 3
Fix the property order
easy8 minOpacity should be listed before display.
- 4
Fix the space-separated list
easy8 minMultiple transitioned properties are comma separated.
- 5
Fix the single duration
easy8 minEach property needs its own duration here.
Ready to write the code?
The editor, the automatic checks and the worked solutions open up with an account.
Open the workspace