Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Color Fade to Black and White

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #149630
    mintertweed
    Participant

    On my current website, I’d like the page for Gloom to fade to black and white when you select the menu option. Is there a way to accomplish this without writing a duplicate set of CSS properties for the Gloom page? Thank you in advance!

    #149633
    Paulie_D
    Member

    Don’t see how….although, and this is pretty far our there…if the page has a class (or ID) you could do.

    body.gloom  * {
    filter:greyscale (100%);
    }
    

    …but I haven’t actually been able to get this to work in Codepen.

    Hmm…perhaps it only works on images.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.