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. customizing image hover

customizing image hover

Scheduled Pinned Locked Moved General Discussion
3 Posts 2 Posters 87 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.
  • L Offline
    L Offline
    likzou
    wrote last edited by
    #1

    Hii,
    I wanted to know whether anybody had experience with customizing the image hover feature? I would like to have a mask ( PNG or whatever) that would work as a frame for the hover images while navigating through the projects. How would this work the best?

    thanx!

    Screenshot 2026-05-30 at 12.53.37.png

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

      Hello!

      can you try this?

      .lay-imagehover-on-element img,
      .lay-imagehover-on-element video {
        -webkit-mask-image: url('/wp-content/uploads/your-mask.png');
                mask-image: url('/wp-content/uploads/your-mask.png');
        -webkit-mask-size: 100% 100%;
                mask-size: 100% 100%;
        -webkit-mask-repeat: no-repeat;
                mask-repeat: no-repeat;
        -webkit-mask-position: center;
                mask-position: center;
      }
      

      in lay options -> custom css & html -> custom css

      the URL needs to be the correct url to your mask png which i guess can be a black/white png or grayscale, not sure

      theres no setting for this, but maybe this can lead you to the right direction

      have a good day

      L 1 Reply Last reply
      0
      • arminunruhA arminunruh

        Hello!

        can you try this?

        .lay-imagehover-on-element img,
        .lay-imagehover-on-element video {
          -webkit-mask-image: url('/wp-content/uploads/your-mask.png');
                  mask-image: url('/wp-content/uploads/your-mask.png');
          -webkit-mask-size: 100% 100%;
                  mask-size: 100% 100%;
          -webkit-mask-repeat: no-repeat;
                  mask-repeat: no-repeat;
          -webkit-mask-position: center;
                  mask-position: center;
        }
        

        in lay options -> custom css & html -> custom css

        the URL needs to be the correct url to your mask png which i guess can be a black/white png or grayscale, not sure

        theres no setting for this, but maybe this can lead you to the right direction

        have a good day

        L Offline
        L Offline
        likzou
        wrote last edited by
        #3

        @arminunruh said in customizing image hover:

        Hello!

        can you try this?

        .lay-imagehover-on-element img,
        .lay-imagehover-on-element video {
          -webkit-mask-image: url('/wp-content/uploads/your-mask.png');
                  mask-image: url('/wp-content/uploads/your-mask.png');
          -webkit-mask-size: 100% 100%;
                  mask-size: 100% 100%;
          -webkit-mask-repeat: no-repeat;
                  mask-repeat: no-repeat;
          -webkit-mask-position: center;
                  mask-position: center;
        }
        

        in lay options -> custom css & html -> custom css

        the URL needs to be the correct url to your mask png which i guess can be a black/white png or grayscale, not sure

        theres no setting for this, but maybe this can lead you to the right direction

        have a good day

        thank youuuu, made a similar code with Claude - its looks neat thank you sm

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


        For paid 1-on-1 Lay Theme Coaching, contact Audrey (audrey@cyberslayers.work) or me (info@laytheme.com).

        We also code custom websites or bespoke Lay features. Drop me a line at info@laytheme.com or check out my work at arminunruh.com.

        Want to support my work? paypal.me/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
        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