Image filter advanced
- Select all images with
querySelectorAll()
-
Loop over the selected NodeList:
- Add the class
.sepia
to every image -
Add a click event listener to every image:
- Add the class
.sepia
to every image - Remove the class
.sepia
from the clicked image
- Add the class
- Add the class
// Image filter (advanced)