Disclaimer: I am a consultant at Amazon Web Services, and this is my personal blog. The opinions expressed here are solely mine and do not reflect the views of Amazon Web Services (AWS). Any statements made should not be considered official endorsements or statements by AWS.
You can use the below code to display the preview of a large-sized image when the user clicks on its thumbnail.
The code is self-explanatory.
Also, while writing this blog, I got to know about this HTML loading Attribute tag as well. It looks interesting, just read about this.
Thank You 🙂 !!