Skip to content

Quozul/canvas-image

Repository files navigation

canvas-image

A canvas to view image, zoom and pan.

Usage

Vanilla HTML

<canvas-image src="https://quozul.github.io/canvas-image/image-landscape.jpg"></canvas-image>
<script src="https://quozul.github.io/canvas-image/canvas-image.js"></script>

⚠️ GitHub Pages is not a CDN, so you should download the canvas-image.js file locally!

Releases

No releases published

Packages

No packages published