Creating a Lightbox Image While Using Enquire MAP

Modified on Fri, Dec 15, 2023 at 1:33 PM

Creating a Lightbox Image While Using Enquire MAP


To create a lightbox (modal dialog for images), use the following CSS:



  1. Wrap the image   





  1. HTML


    <a href="#" class="click-grow"><img ....> </a>

     




  2. Then in the page CSS block (style accordion), use the following CSS:  







  1. HTML


    <a href="#" class="click-grow"><img ....> </a>

     




  2. CSS


    hover-grow {
    position: relative;
    }

    .hover-grow:hover {
    z-index: 100000;
    transform: scale(2.5);
    -webkit-transform: scale(2.5);
    transition: 1s;
    -webkit-transition: 1s;
    -moz-box-shadow: 0 0 15px 2px #000;
    -webkit-box-shadow: 0 0 15px 2px #000;
    box-shadow: 0 0 15px 2px #000;
    }

    .click-grow img {
    position: relative;
    }

    .click-grow:focus img {
    z-index: 100000;
    transform: scale(2.5);
    -webkit-transform: scale(2.5);
    transition: 1s;
    -webkit-transition: 1s;
    -moz-box-shadow: 0 0 15px 2px #000;
    -webkit-box-shadow: 0 0 15px 2px #000;
    box-shadow: 0 0 15px 2px #000;
    }

     




Please reach out to the dedicated Enquire Account Manager or Enquire MAP Support team for further assistance.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article