Click on an Image to Enlarge with HTML Widget?
Hi! I am wondering if it's possible to have an image in an HTML widget and when you click on it, it pops up and enlarges. Similar to how images function in a blog or forum post. If you click on the image it pops up and gets bigger.
Thank you!
1 Conclusion
Hi Laurisa Titterud ! That's certainly possible, using what we call Modal Images. I've attached a link below where you can view some sample code for the operation. I took this sample code, substituted in an image link of my own, and was able to create the pop-up effect you're looking for. You'll likely want to play with some of the variables around sizing and positioning, but it can be done.
1 Reply
Hi Laurisa Titterud ! That's certainly possible, using what we call Modal Images. I've attached a link below where you can view some sample code for the operation. I took this sample code, substituted in an image link of my own, and was able to create the pop-up effect you're looking for. You'll likely want to play with some of the variables around sizing and positioning, but it can be done.
https://www.w3schools.com/howto/howto_css_modal_images.asp