https://codepen.io/TuscannyCodes/pen/NWdboRL
Why isn’t my final if statement working in the Javascript? Everything looks fine to me. I want it so that if a class containing a bacground color of blue is active on the body. Then remove a hidden visibility class on a photo div.
I linked the codepen above but here is the if statement as well below
if (body.classList.contains("colorSwap")) {
photo.classList.remove("notVisible");
};