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

-
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
-
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
@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
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:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- 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:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it