Skip to content

iscottycodes/JAVA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Light Bulb Simulator

Light Bulb Simulator

Interactive web application that simulates turning a light bulb on and off with visual effects and animations.

by Scott Dee

About This Project

Hey there! I'm Scott Dee and this is my interactive light bulb simulator project. I built this as part of my web development learning journey. It's a fun little app that lets you turn a light bulb on and off with cool animations and effects!

The whole thing is made with HTML, CSS, JavaScript, and jQuery. I wanted to practice making interactive UIs and smooth animations, so I created this light bulb simulator. It was actually really fun to work on!

⚠️ IMPORTANT: Just download the files and open index.html in your browser - that's it! No complicated setup needed.

How to Run It

So this is super easy to run:

  1. Download all the files (index.html, styles.css, script.js, etc.)
  2. Just double-click on index.html
  3. It should open right in your browser!
  4. Click the buttons and watch the cool effects!

Pro tip: If you're doing web development, VS Code Live Server or Python's simple server work great too, but honestly just opening the HTML file works perfectly for this project.

How It Works (Pretty Simple!)

Basic Stuff

  1. Open index.html in your browser (like I said above!)
  2. Click "Turn On" - watch the light bulb glow!
  3. Click "Turn Off" - light goes dark again
  4. Try hovering over the buttons - they have cool effects!

Secret Keyboard Stuff

  • Press 1 or Enter to turn the light ON
  • Press 0 or Escape to turn the light OFF

(If you're like me and too lazy to click buttons sometimes 😅)

Cool Things You'll Notice

  • The light bulb glows when it's on (my favorite part!)
  • Buttons have hover effects and bounce when you click them
  • The status text changes color to match the current state
  • It works on phones too because I made it responsive

What I Learned Building This

OK so I'm pretty proud of this project! Here's what I managed to figure out:

The Main Stuff Works

  • Light bulb actually turns on/off (sounds simple but took forever to get right!)
  • Buttons work and look cool when you hover/click them
  • Status text changes color and tells you what's happening
  • Keyboard shortcuts work too (was harder than I thought!)

Making It Look Good

  • Gradient background that looks modern
  • Glass-ish effect on the main container
  • Smooth animations when switching states
  • Glowing effect around the bulb when it's on
  • Works on mobile phones too!

Technical Stuff I Figured Out

  • HTML structure and CSS styling
  • JavaScript and jQuery for interactivity
  • Getting it to work in all browsers
  • Making sure code is organized and readable
  • Event handling (clicking, keyboard presses)

Cool User Stuff I Added

  • Button hover effects and click animations
  • Those little feedback messages that pop up
  • Ripple effects when you push buttons
  • Making transitions smooth between states
  • Intuitive way to control everything

Screenshots

Application Demo

Light Bulb Simulator Demo Screenshot of the Light Bulb Simulator interface

Project Icon

Light Bulb Icon Light bulb icon used in the application

Technologies Used

  • HTML5 - Structure and semantic markup
  • CSS3 - Styling, animations, and responsive design
  • JavaScript - Interactive functionality
  • jQuery - DOM manipulation and event handling
  • External Icons - Light bulb PNG from ClipartPNG

File Structure

light-bulb-simulator/
├── index.html          # Main HTML file
├── styles.css          # CSS styling and animations
├── script.js           # JavaScript/jQuery functionality
├── README.md           # Project documentation
└── img/
    └── screenshot.png  # Demo screenshot

Browser Compatibility

Tested and works on:

  • Chrome (recommended)
  • Firefox
  • Safari
  • Edge
  • Mobile browsers (iOS Safari, Chrome Mobile)

Thanks & Credits

Big shoutout to:

Let's Collaborate!

This is my student project, but if you want to suggest improvements or found bugs:

  1. Fork my repository
  2. Add your changes (git checkout -b feature/cool-idea)
  3. Commit what you did (git commit -m 'Added cool idea')
  4. Push it up (git push origin feature/cool-idea)
  5. Start a Pull Request

I'd love to see what other people can do with this project!

Why I Made This

This project was part of my web dev learning journey. I wanted to practice:

  • Building interactive websites
  • JavaScript and jQuery (was confusing at first!)
  • CSS animations (so satisfying when they work!)
  • Making it work on phones too
  • Writing clean, readable code

It was actually pretty fun to build once I figured everything out!


Made by Scott Dee with a lot of trial and error 😅

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published