Ptphotography Posted October 4, 2020 Share Posted October 4, 2020 Hello everyone, does anyone know what's the code to add 3 images in code block? Images should change on hover. Thank you, K Link to comment
tuanphan Posted October 5, 2020 Share Posted October 5, 2020 3 images, hover on each images, it will change to another image? 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
Ptphotography Posted October 5, 2020 Author Share Posted October 5, 2020 @tuanphan Yes, the idea is I have a 1 main image, when I hover over the main image, 2 additional images shall appear. So that I have 3 images to show in total. Please, do you think it is possible? Link to comment
tuanphan Posted October 6, 2020 Share Posted October 6, 2020 I think you need to use JavaScript. Do you use Personal or Business Plan? 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
Ptphotography Posted October 7, 2020 Author Share Posted October 7, 2020 @tuanphan I have commerce, you think that could work? Link to comment
tuanphan Posted October 7, 2020 Share Posted October 7, 2020 <img src="https://beaverhero.com/wp-content/uploads/2019/06/trees-3464777_640-min.jpg" width="200px" class="img1"/> <div class="img2"> <img src="https://beaverhero.com/wp-content/uploads/2019/08/momentum-squarespace.jpg"/> <img src="https://beaverhero.com/wp-content/uploads/2019/07/pedro-demo-squarespace-com-1689x1080-500w.jpg"/> </div> <style> /* hide 2 images */ .img2 { display: none; } /* show 2 images on image 1 hover */ .img1:hover + .img2 { display: block; } </style> Try add to Code Block 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
Ptphotography Posted October 8, 2020 Author Share Posted October 8, 2020 @tuanphan I am always grateful for your help. The code worked, however, may I just request a small tweak. How do we make the images appear on the same place when hovered? What I want to achieve is: when you hover on the hero image, other two shots will appear one the same frame. Thank you for your patience 😆 Link to comment
tuanphan Posted October 10, 2020 Share Posted October 10, 2020 3 images on same row?? 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
Ptphotography Posted October 12, 2020 Author Share Posted October 12, 2020 Yes please @tuanphan Link to comment
tuanphan Posted October 12, 2020 Share Posted October 12, 2020 2 hours ago, Ptphotography said: Yes please @tuanphan Can you share link to page where you inserted above code? We can check easier. 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.