🧠 Description
This project creates a Frankenstein-inspired toggle switch using pure HTML and CSS, without any JavaScript. The switch visually transforms between states (ON/OFF) with animated facial movements, glowing colors, and clever use of CSS gradients. It’s a creative example of how advanced CSS features like custom properties, gradients, and pseudo-elements can be used to draw complex artwork and interactivity directly in the browser.
💻 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 "path" inside the same todo item.
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.
