change color darker or lighter using jquery code example Example: make image darker in css #myimage { filter: brightness(50%); }