Guest Posted January 27, 2021 Share Posted January 27, 2021 Site URL: https://amandakuang.com/ Hello👋, I am wondering if there is a way to switch the image source of block A according to the hover action on block B. Basically I'm trying to make block A show some information (in the form of image) about block B when user hovers over B, and make A return to the original state (cover image) when nothing is hovered.  My intuition is this but it's not working: (block B) :hover {  (block A) img {src= "source.png";}  }  I've attached a screenshot of the website I'm working on. Image A is the yellow block, and image B is one of the grey blocks.  Thank you! Link to comment
tuanphan Posted February 2, 2021 Share Posted February 2, 2021 Hi. Have you found the solution yet? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Guest Posted February 8, 2021 Share Posted February 8, 2021 On 2/2/2021 at 9:08 AM, tuanphan said: Hi. Have you found the solution yet? No not yet 😞 Link to comment
tuanphan Posted February 8, 2021 Share Posted February 8, 2021 You can try finding "Tabs" eg this plugin. or free code on Codepen https://codepen.io/kball/pen/vXVEYZhttps://codepen.io/sujal_radadiya/pen/YzPENEX  Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.