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
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
Interesting – but how would it look like if I had 6 team members and all of them have a different hover image?
Thanks Nora
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