How to show popup on hovering an image , using javaScript | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to show popup on hovering an image , using javaScript

i have created a page on which i am showing variants of shoes , noe i want that on hovering any image i get a popup box with description of image , help me out to get the approch.

30th Jul 2022, 10:41 AM
Siddarth Mewara
2 Answers
0
An easy way would be to use the css ::after and ::before. You can customize them and make them show what text you want, where you want, probably somewhere near what you have hovered.(with position absolute)
30th Jul 2022, 10:45 AM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
0
7th Aug 2022, 4:19 AM
Siddarth Mewara