A simple and fun web project that demonstrates DOM manipulation using HTML, CSS, and JavaScript. The app allows users to turn a virtual bulb ON with a chosen color and OFF to reset it to white.
- Toggle bulb ON with a color of your choice (via
prompt) - Turn OFF resets the bulb to default white
- Smooth color transitions
- Clean and responsive UI using CSS Flexbox
- HTML5
- CSS3 (Flexbox, transitions)
- JavaScript (DOM manipulation, prompt interaction)
- The user clicks the Turn ON button.
- A prompt appears to enter a color (like
red,yellow,#ff0,rgb(255,255,0)). - The bulb changes to the specified color.
- Clicking Turn OFF resets the bulb to white.
-
Clone the repository:
git clone https://github.com/hemanthkumar0405/Bulb-Toggle.git