Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • 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. image hover with a color tint

image hover with a color tint

Scheduled Pinned Locked Moved General Discussion
6 Posts 3 Posters 96 Views
  • 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.
  • doorofperceptionD Offline
    doorofperceptionD Offline
    doorofperception
    wrote on last edited by
    #1

    Hello, I'm trying to tint the image hover pics with custom CSS.

    What I want is something resembling the gradient map effect from Photoshop (see screenshot attached). So far I only managed to make the pictures b&w :)

    If I understand correctly there's no very simple solution for this. You need to use a colored background and then layer the pic on top or something like that.

    If anybody could tell me how to do it. That would be awesome.
    Thank you — Ben

    blue.jpg

    1 Reply Last reply
    0
    • A Offline
      A Offline
      alasdair17
      wrote on last edited by alasdair17
      #2

      hey, could you not just add a gradient map to the image in photoshop and then upload it as the project thumbnail and then it would show up how you would like it on hover?

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

        you can combine css filters

        https://developer.mozilla.org/en-US/docs/Web/CSS/filter

        look i googled it:
        https://stackoverflow.com/questions/44023583/css3-grey-image-to-blue-color-using-filters

        this is what i googled:

        "use css filter to make image blue"

        img{
        filter: sepia(100%) hue-rotate(190deg) saturate(500%);
        }
        

        Screenshot 2024-07-25 at 19.32.22.png

        1 Reply Last reply
        0
        • doorofperceptionD Offline
          doorofperceptionD Offline
          doorofperception
          wrote on last edited by
          #4

          Thank you, but this doesn't achieve the desired look. I found these examples too.
          Black is still black, unlike when using a gradient map that turns the black into a desired color too.

          But now I'm on the right track: https://cssduotone.com/

          This is what I needed.
          Still not sure on how many browsers this is displayed properly though.

          A 1 Reply Last reply
          0
          • doorofperceptionD doorofperception

            Thank you, but this doesn't achieve the desired look. I found these examples too.
            Black is still black, unlike when using a gradient map that turns the black into a desired color too.

            But now I'm on the right track: https://cssduotone.com/

            This is what I needed.
            Still not sure on how many browsers this is displayed properly though.

            A Offline
            A Offline
            alasdair17
            wrote on last edited by
            #5

            @doorofperception Can you definitely not just add the effect on the image in photoshop and upload it to wordpress, is that too simplistic to work haha?

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

              did you get it to work?
              if you dont want the black to be black you can add

              filter: brightness(1.2);

              or use opacity css on the image
              and then use css to have a blue color on the background? idk

              Screenshot 2024-07-29 at 19.12.59.png

              this "generate" button gives you the css, did you get it to work with that?

              @alasdair17 yea, maybe hes doing a website for a client and doesnt want the client to have to use PS

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


              I also code custom websites or custom Lay features.
              šŸ’æ Email me here: šŸ’æ
              info@laytheme.com

              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
              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