Change the page brightness using Javascript

Comments

  1. I fan you ,
    I admire you,
    You are a genius :)

    ReplyDelete
  2. Awesome man. Keep up the good work

    ReplyDelete
  3. Hey I have edit your code a bit for more precise input and realtime brightness change

    setInterval(() => {
    container.style.filter = "brightness(" + rangeInput.value + "%)";
    })

    for javascript

    and in html added the attribute step="0.001"

    ReplyDelete

Post a Comment