cotton123236 / zoomist

Zoomist is a library built with TypeScript that allows you to create zoom elements on website quickly and easily.
https://zoomist.vercel.app/
MIT License
110 stars 23 forks source link

Can it be used inside a div element? Does it have to be only for scaling images? #33

Closed 9yues closed 5 months ago

9yues commented 1 year ago

Can it be used inside a div element? Does it have to be only for scaling images?

cotton123236 commented 1 year ago

Hey @9yues , It's possible to be used on any element!, make sure you're using zoomist version 2.x and you can zooming anything you want in .zoomist-image (checkout v2 on github).

ukizet commented 11 months ago

@cotton123236 why can't I click on the button inside the zoomist-image container? I tried clicking on the button inside the zoomist-wrapper container and it works, but then I can't zoom into button. What can I do to be able to both zoom in and click on the button?

Codesandbox example

cotton123236 commented 5 months ago

Hey @ukizet ,

Starting from v2.1.0, you can click the button or other elements in .zoomist-image!

toremato commented 2 weeks ago

Hi, @cotton123236! Cannot click on anything inside zoomist wrapper @ v2.1.1