Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1318024

    Hi
    Can you recommend any plugin for an image hover effect. I would like to show a second image for all team members on mouse-over. I don’t think you offer any of this, do you? Can you recommend a plugin I could use?
    Thanks Nora

    #1318120

    Hi Nora,

    I don’t think you need a plugin for that, it should be possible with CSS. You can try something like this for example:

    .team-social {
        background-image: url(https://kriesi.at/themes/enfold-2017/files/2017/02/people-2.jpg);
        background-repeat: no-repeat;
        background-size: cover;
    }

    Best regards,
    Rikard

    #1318129

    Interesting – but how would it look like if I had 6 team members and all of them have a different hover image?
    Thanks Nora

    #1318390

    Hi Nora,

    You could try using the nth child selector: https://www.w3schools.com/cssref/sel_nth-child.asp. So your CSS would look something like this if you wanted to target the first child element:

    .team-social:nth-child(1) {
        background-image: url(https://kriesi.at/themes/enfold-2017/files/2017/02/people-2.jpg);
        background-repeat: no-repeat;
        background-size: cover;
    }

    You would likely need to be more specific in your CSS if you only want that to apply to a single element. You could add the elements in a Color Section and give it an ID for example, then you could use CSS like this:

    #your-section-id .team-social:nth-child(1) {
        background-image: url(https://kriesi.at/themes/enfold-2017/files/2017/02/people-2.jpg);
        background-repeat: no-repeat;
        background-size: cover;
    }

    Best regards,
    Rikard

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