Hey there, I'm currently working on a fun little project and could use some guidance on how to achieve a specific effect. The website in question is [redacted], and you can view the code I've used so far at [redacted]. You'll find a code block at the end of this post.
The concept is quite simple, here's what I'd like to accomplish:
When hovering over my body, several icons across the entire body should fade in simultaneously.
If a particular icon is hovered over, it should appear brighter or more opaque.
Clicking on one of these areas should make other divs fade in (I plan to use jquery for this).
Currently, Step 1 is working fine. I have two images stacked on each other - one plain image and one with all the features that visitors can interact with by hovering. The invisible image becomes visible on hover.
I want to create additional images of myself, each highlighting a different feature upon interaction. For instance, if the heart icon is hovered over, a new image replacing me with a brighter heart should appear.
My main challenge is figuring out the best way to achieve this effect. Happy to provide more details if needed! Thanks for any help you can offer!
Cheers,
Patrick
.fade {
opacity: 0;
transition: opacity .25s ease;
-moz-transition: opacity .25s ease;
-webkit-transition: opacity .25s ease; }
.fade:hover {
opacity: 1;
}
<div style="height:100%">
[redacted]
</div>