Invert colors using css

I am testing inverting all of the colors using css. Any suggestions? Attached is the file I am testing.
invert colors.zip (109.4 KB)

You just need to set the class ‘inverted’ to your elements:

If you wanted to add that class in response to something else, you would need to run a function:

https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_add_class

Thanks, adding the following and and able to invert everything, even videos.

1 Like