Question: Shading Effect Using JS / CSS to mock user screen brightness control?
Info: By control I was thinking of a simple css/javascript combo to add a dark shaded effect on the entire page mocking brightness control.
But I don't know how to do that exactly. I was wondering if I could use a text box to control the last rgba value with a max/min value or even create a slider but I'm having a bit of trouble connecting css to js and then back to control each other. I don't have any existing code.
If you think this is unclear: My goal is to shade the body page using a js slider to control the shading SIMPLY MOCKING a screen brightness effect.
Future Plans: When I finally figure out how to do the shading effect with the help of you guys my plan is to let the user control the shading to mock a user controlled screen brightness. Thanks Guys!
Only help I've found so far: Add something like background-color:rgba(0,0,0,0.5) to the css. That will cover everything in a black "sheet" with a 50% opacity making everything appear darker. This will also only work on rgba enabled browsers.
Thanks Stack, Hoping For Some Experience CSS / JS Devs To Help Me :)