Skip to content

codamee/etch-a-sketch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

17 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Etch-a-Sketch

A browser-based sketchpad that allows users to draw by hovering over a dynamic grid. This project focuses heavily on DOM Manipulation and Event Listeners.

Etch-a-Sketch Preview

๐Ÿš€ Live Demo

Try the Sketchpad Here

๐ŸŽจ Key Features

  • Dynamic Grid Generation: A grid built entirely via JavaScript. Users can resize the grid (up to 100x100) via a popup prompt.
  • Interactive Drawing: Implemented "hover" functionality using mouse event listeners to change div background colors.
  • Responsive Square Sizing: Used Flexbox to ensure that no matter the grid size (16x16 or 64x64), the drawing area stays within a fixed 960px container.

๐Ÿ› ๏ธ Technical Skills

  • DOM Manipulation: Creating, appending, and removing elements using document.createElement() and appendChild().
  • Events: Handling mouseenter and click events to drive user interaction.
  • CSS Flexbox: Managing complex layouts without using CSS Grid.

Built as part of The Odin Project Foundations.

About

A dynamic, browser-based drawing pad built with vanilla JavaScript.

Topics

Resources

Stars

Watchers

Forks

Contributors