I am interested in achieving a specific effect with a series of images that transition from dark to light. My idea is to have a dial or slider underneath or over the frame so that when it is moved to the left, the black image is displayed, and when moved to the right, the white image is displayed, with varying levels of grey in between.
While I have limited knowledge of Java Script and HTML5, I am a programmer willing to tackle this challenge. I do not need a fully developed solution, but rather some guidance, hints, and ideas on how to make this concept work effectively.
- How can I create the slider?
- More importantly, how can I select the appropriate image for display based on the slider's position?
If possible, I would prefer to implement this using JS without relying on external libraries. Could utilizing a 2D canvas be a viable solution for both rendering the images and creating the UI elements like the slider?
Thank you for any assistance you can provide.