🧠 Description
This fun interactive To-Do List animates a hand-drawn SVG line across each task whenever you check its box.
It combines HTML structure, CSS transitions, and JavaScript DOM manipulation to create a smooth, satisfying animation effect — making your task list feel alive.
You can use it for daily planner UIs, interactive learning projects, or creative portfolio demos.
💻 HTML Code
Container: (div class="todo-container") wraps all tasks in a card-like box.
To-Do Item: Each task has a checkbox, label, and SVG line (path) below it.
SVG Path: The curvy path simulates a playful hand-drawn strike-through effect.
Divider: (div class="divider")(div) separates each task for better readability.
CSS Code
Body Styling: Centers the list on a dark background.
Container: White rounded box with shadow for clean contrast.
Checkbox: Uses accent-color to apply a custom blue tick color.
SVG Line: Initially invisible (opacity: 0 and stroke-dashoffset: 700), then animates to visible when checked.
Transition: Creates a smooth “line-drawing” effect when toggled.
Divider: Adds a subtle line between tasks for visual spacing.
Javascipt Code
Selector: Targets every element with the .checkbox class.
Path Reference: Finds the SVG
Event Listener: When checkbox state changes (checked or not):
strokeDashoffset = 0: draws the line across the label.
strokeDashoffset = 700: hides it again when unchecked.
Opacity: Smoothly fades in or out the line for extra polish.
