Color Wheel Slider Example
🎨
ChatGPT PROMPT:
Write html code that lets a user drag a slider to change the background color of a webpage.
-
Can we have the background change colors, not just from grey to black, but a constant slider of colors?
-
Awesome. Can we add text above the slider that says "Drag me:" AND can we make the slider bar black with 50% opacity?
-
Great! One last thing. Can we start on any random color EXCEPT white?
-
Hmmm - it's still starting out as white. Would it be better to just default to a nice blue color? Let's try that.
-
That's good. You know what would be cool? Can we make the slider automatically slide on its own until a user taps and drags on it? So the page would be changing colors automatically upon load.