Exercise
Extension: make the checklist jiggle
Allow 8 minutes. Add a short animation and repeat the behaviour checks.
Files
Prompt to start
Here is my interactive checklist: [paste source]. When I move the pointer over an item or focus its checkbox with the keyboard, make its checkbox and text jiggle briefly. Keep labels, count and Reset working. Respect prefers-reduced-motion. Give me one complete HTML file, with no libraries or network requests.
Steps
- Open a copy of your interactive checklist, or the supplied demo. Hover over an item and try ticking it.
- Ask the chatbot for a brief jiggle on pointer entry and keyboard focus. Keep the labels, count and Reset.
- Save a new version. Tick, untick, use the keyboard and press Reset twice.
- Try a reduced-motion setting if available and record whether the animation stops.
Check your result
- The count changes both ways and Reset still works after the visual change.
- The page respects a reduced-motion preference.