A sleek, simple color-flipper built with vanilla JavaScript. Every click generates a random hex color, updates the page background, and lets you copy the hex code by clicking it.
- Random Hex Color: Generates a new hex code (e.g.,
#e1e2e3) on demand. - Interactive UI: Click the “Click me” button or press Space to change the color.
- Clipboard Copy: Click the displayed hex code to copy it to your clipboard.
- Keyboard Accessible: Press Space as a handy shortcut.
- index.html ← Main markup
- style.css ← Basic styling for button & background
- script.js ← Core JavaScript for color generation & interactions
-
Clone the repository
git clone https://github.com/saivenkateshr21/Color‑Flipper.git cd Color‑Flipper -
Open index.html in any modern browser.
-
Use it
- Click the button or press Space to apply a random background color.
- Click the hex color code to copy it.