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 294 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
    L
    likzou
    wrote on 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
      arminunruhA
      arminunruh
      Global Moderator
      wrote on 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
        L
        likzou
        wrote on 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

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        Online Users
        I
        itsbadjujuju
        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