Web Dev Solutions

Catalin Mititiuc

From 2d3fc1cd22ffcc61ec178eeaf97f3a4d7cba98bf Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Sat, 20 Apr 2024 19:34:06 -0700 Subject: Use CSS transformations instead of manipulating the viewBox --- public/index.html | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) (limited to 'public/index.html') diff --git a/public/index.html b/public/index.html index 8040421..35a3030 100644 --- a/public/index.html +++ b/public/index.html @@ -3,31 +3,28 @@ - SVG Pan & Zoom Example - + JavaScript/CSS Pan & Zoom Demo + -

Pan & Zoom an SVG Image with JavaScript

+

Pan & Zoom an Element with CSS/JavaScript

Click and drag on the image to pan. Use the mouse wheel to zoom in and out.

- +

+ +

+ +
+ + +
-- cgit v1.2.3