Get started with svg.pan-zoom.js CDN
MIT licensed
SVG.pan-zoom.js: Lightweight library for smooth SVG image panning and zooming.
Tags:- svg
- pan
- zoom
Stable version
Copied!
How to start using svg.pan-zoom.js CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with svg.pan-zoom.js CDN - cdnhub.io</title>
<link rel="stylesheet" href="styles.css">
<script src="https://cdn.jsdelivr.net/npm/svg.pan-zoom@2.8.0/dist/svg.pan-zoom.min.js"></script>
</head>
<body>
<svg width="400" height="400" xmlns="http://www.w3.org/2000/svg" class="pz-container">
<rect x="50" y="50" width="100" height="100" fill="#f00" />
<text x="150" y="150" fill="#000">Hello World!</text>
</svg>
<script src="script.js"></script>
</body>
</html>
Copied!
Copied!