Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #431631

    Hello,

    How to add image overlay – yellow for example, and custom icon from fontello icon, or other way, from custom pngs?

    I want to have yellow overlay with custom icon, when mouse is over the image in masonary gallery.

    I don’y know how to set icon on mouse hover, and how to set custom color, different than background color for overlay….

    TIA!

    • This topic was modified 9 years ago by stompi.
    #432249

    Generally i would like to add same, yellow image, with 40% opacity, and, but it would be the icing on the cake, the custom icon – from png file.

    #432705

    Hi!

    Thank you for using Enfold.

    Add something like this in the Quick CSS field:

    .av-masonry-outerimage-container:hover .av-masonry-image-container:before {
      content: '';
      display: block;
      background: red;
      width: 100%;
      height: 100%;
      z-index: 5000;
      position: absolute;
    }

    Place an image in the content property or adjust the background.

    http://www.w3schools.com/cssref/pr_gen_content.asp

    Best regards,
    Ismael

    #433039

    Hi!

    Thank You very much. Yellow overlay does work, and this is perfect, but i still can’t add any icon :-/

    Before, there is no icon also, maybe i have some other setting, that disable icons?

    #433279

    Hey!

    You can add an image in the content property. Please refer to the link above, look for the url value.

    http://www.w3schools.com/cssref/tryit.asp?filename=trycss_content_url

    .av-masonry-outerimage-container:hover .av-masonry-image-container:before {
      content: url(smiley.gif);
      display: block;
      background: red;
      width: 100%;
      height: 100%;
      z-index: 5000;
      position: absolute;
    }

    Best regards,
    Ismael

    #434163
    This reply has been marked as private.
    #434546

    Hey!

    Remove the opacity then use rgba color values to create a transparent effect:

    .av-masonry-outerimage-container:hover .av-masonry-image-container:before {
    content: '';
    display: block;
    background: rgba(255,222,0,.5) url('http://stompor.eu/wp-content/uploads/2015/04/zoom_in_1-1121.png') 50% 40% no-repeat;
    width: 100%;
    height: 100%;
    z-index: 5000;
    position: absolute;
    }
    

    Regards,
    Ismael

    #434648

    Hey.

    Great! Now i total happy from this masonry gallery:-)

    Thanks!

    #435010

    Hey!

    Great, glad we could help :)

    Regards,
    Rikard

    #625810

    Hi there,

    I just came across this request and like the effect.

    Is there any way to just apply to the masonry image gallery but NOT TO the masonry style blog posts.

    I would also like to display a list of links (menu items), if you will, instead of an image.

    I’d really appreciate any pointers.

    Many thanks

    #626247

    Hi,

    Could you provide us with a link to the site in question so that we can take a closer look please?

    Best regards,
    Rikard

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.