Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. making project thumbnails always B/w and colour only on mouse hover

making project thumbnails always B/w and colour only on mouse hover

Scheduled Pinned Locked Moved General Discussion
3 Posts 3 Posters 79 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    aras.acarg
    wrote last edited by
    #1

    Hi!

    I know Lay offers a possibility of making a project thumbnail B/W on mouse hover.
    However I would like to have the opposite happening:
    thumbnails are b/w and become colour on hover.

    Is this something I have to do with CCS or is there another way that I'm not seeing?

    Thank you:)
    Sara

    1 Reply Last reply
    0
    • S Offline
      S Offline
      samfrancis
      wrote last edited by
      #2

      Yeah that’s doable with CSS, Lay doesn’t have a built-in toggle for “reverse hover” like that.

      You basically just set the thumbnail to grayscale by default, then remove it on hover. Something like:

      .project-thumbnail img {
        filter: grayscale(100%);
        transition: filter 0.3s ease;
      }
      
      .project-thumbnail img:hover {
        filter: grayscale(0%);
      }
      

      You might need to adjust the class name depending on how your thumbnails are structured, but that’s the general idea.

      Clean effect btw, looks really nice when done right 👍

      1 Reply Last reply
      0
      • arminunruhA Offline
        arminunruhA Offline
        arminunruh
        Global Moderator
        wrote last edited by
        #3

        amazing thanks a lot for the help samfrancis! <3

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        For 1on1 paid Lay Theme Coaching, contact: audrey@cyberslayers.work.

        We also code custom websites or custom Lay features.
        💿 Email us here: 💿
        info@laytheme.com

        Our Web Development company: 100k.studio

        Want to tip me? https://www.paypal.com/paypalme/arminunruh

        Before you post:
        1. When using a WordPress Cache plugin, disable it or clear your cache.
        2. Update Lay Theme and all Lay Theme Addons
        3. Disable all Plugins
        4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

        This often solves issues you might run into

        When you post:
        1. Post a link to where the problem is
        2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
        3. If the problem is difficult to explain, post screenshots / link to a video to explain it
        Online Users
        M
        michael_vvc
        Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
        laytheme.com
        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Recent
        • Tags
        • Popular
        • Users
        • Search