JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@fancyapps/ui@5.0/dist/panzoom/panzoom.css"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@fancyapps/ui@5.0/dist/panzoom/panzoom.pins.css"
/>
<style>
#myPanzoom {
max-width:600px;height: 400px;background: #eee;
}
</style>
</head>
<body>
<div>
<div class="f-panzoom" id="myPanzoom">
<div data-panzoom-pin data-x="56%" data-y="60%">
<div title="My dream house">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 0a7.2 7.2 0 0 0-7.27 7.14C4.73 11.08 12 24 12 24s7.27-12.92 7.27-16.86A7.2 7.2 0 0 0 12 0Z"></path></svg>
</div>
</div>
<img class="f-panzoom__content" src="https://lipsum.app/id/15/1600x1200" />
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/@fancyapps/ui@5.0/dist/panzoom/panzoom.umd.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@fancyapps/ui@5.0/dist/panzoom/panzoom.pins.umd.js"></script>
<script>
new Panzoom(document.getElementById("myPanzoom"), {
// Custom options
}, {
Pins
});
</script>
</body>
</html>