Hotspots
Create an image with interactive hotspots that show hidden description on click or hover.
<!-- Hotspots made of buttons and popovers -->
<!-- Wrap the image with a "ratio" element to avoid content shifts on page load. Formula: imageHeight / imageWidth * 100% -->
<div class="ratio" id="hotspots" style="--cz-aspect-ratio: calc(500 / 526 * 100%)">
<!-- Hotspot button -->
<a class="btn btn-icon btn-sm btn-light rounded-circle shadow position-absolute z-2" href="#!" style="top: 63.4%; left: 75.8%" data-bs-toggle="popover" data-bs-html="true" data-bs-trigger="focus" data-bs-placement="top" data-bs-custom-class="popover-sm" data-bs-content='
<div class="d-flex align-items-start position-relative">
<img src="assets/img/home/furniture/gallery/hotspot01.png" width="64" alt="Image">
<div class="nav flex-column pt-2 ps-2 ms-1">
<a class="nav-link hover-effect-underline stretched-link p-0 mb-2" href="#">Indigo coushy low sofa</a>
<div class="h6 mb-0">$856.00</div>
</div>
</div>
' tabindex="1" aria-label="Hotspot">
<i class="ci-plus fs-sm"></i>
</a>
<!-- Hotspot button -->
<a class="btn btn-icon btn-sm btn-light rounded-circle shadow position-absolute z-2" href="#!" style="top: 60.2%; left: 15.7%" data-bs-toggle="popover" data-bs-html="true" data-bs-trigger="focus" data-bs-placement="bottom" data-bs-custom-class="popover-sm" data-bs-content='
<div class="d-flex align-items-start position-relative">
<img src="assets/img/home/furniture/gallery/hotspot02.png" width="64" alt="Image">
<div class="nav flex-column pt-2 ps-2 ms-1">
<a class="nav-link hover-effect-underline stretched-link p-0 mb-2" href="#">Ergonomic beige armchair</a>
<div class="h6 mb-0">$235.00</div>
</div>
</div>
' tabindex="1" aria-label="Hotspot">
<i class="ci-plus fs-sm"></i>
</a>
<!-- Hotspot button -->
<a class="btn btn-icon btn-sm btn-light rounded-circle shadow position-absolute z-2 start-50 translate-middle-x" href="#!" style="top: 25.8%" data-bs-toggle="popover" data-bs-html="true" data-bs-trigger="focus" data-bs-placement="top" data-bs-custom-class="popover-sm" data-bs-content='
<div class="d-flex align-items-start position-relative">
<img src="assets/img/home/furniture/gallery/hotspot03.png" width="64" alt="Image">
<div class="nav flex-column pt-2 ps-2 ms-1">
<a class="nav-link hover-effect-underline stretched-link p-0 mb-2" href="#">Waves modern painting</a>
<div class="h6 mb-0">$74.99</div>
</div>
</div>
' tabindex="1" aria-label="Hotspot">
<i class="ci-plus fs-sm"></i>
</a>
<!-- Main image -->
<img src="assets/img/home/furniture/gallery/01.jpg" class="rounded-5" alt="Image">
</div>