A web app that simulates lift mechanics, allowing users to visualize and interact with elevator movements. Built with JavaScript, HTML, and CSS, this project explores OOP concepts, CSS transitions, and JS objects/prototypes. This is my solution for RDS lift simulation assignment
π Live Demo: Lift Simulation
β
Dynamic Input β Users can specify the number of floors and lifts.
β
Interactive UI β Floors display call buttons, and lifts respond to requests.
β
Realistic Lift Behavior β Lifts move intelligently to requested floors.
β
Smooth Animations β Doors open (2.5s), close (2.5s), and lift moves at 2s per floor.
β
Optimized Lift Allocation β Lifts are assigned efficiently to minimize wait times.
β
Stops at Multiple Requests β Lifts stop at every floor where they were called.
β
Mobile-Friendly β Responsive design for a seamless experience on all devices.
This project helped me gain a deeper understanding of:
- Object-Oriented Programming (OOP) in JavaScript
- Handling state using JS objects and prototypes
- CSS transitions and animations for smooth UI interactions
- Optimizing lift movement logic for realistic simulation
- Users enter the number of floors and lifts.
- A UI is generated with buttons on each floor and lift indicators.
- Clicking a floor button calls the nearest available lift.
- The lift moves, stops at requested floors, and opens/closes doors accordingly.
- Better Lift Allocation Algorithm β Optimize for multiple simultaneous requests.
- Sound Effects & UI Enhancements β Improve user experience.
- Local Storage Support β Save state between refreshes.
