Skip to content

Commit

Permalink
Color_picker updated
Browse files Browse the repository at this point in the history
  • Loading branch information
umarsayed12 committed May 7, 2024
1 parent 8499f89 commit 2093e49
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions DOM_projects/color_picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,9 @@ buttons.forEach((button) => {
button.style.height = "150px";
button.style.width = "150px";
});
button.addEventListener('mouseout',(e) => {
body.style.backgroundColor = e.target.id;
button.style.height = "100px";
button.style.width = "100px";
});
});

0 comments on commit 2093e49

Please sign in to comment.