gadenbuie / xaringanExtra

:ferris_wheel: A playground of enhancements and extensions for xaringan slides.
https://pkg.garrickadenbuie.com/xaringanExtra
Other
448 stars 36 forks source link

Feature Request: magnifier to zoom in some region of the slide #148

Open albert-ying opened 2 years ago

albert-ying commented 2 years ago

During the presentation, sometimes we want to show some details of the figures, but the problem is they are usually too small and hard to see (esp from distance). The Xaringan by default cannot be zoomed in, which is a problem.

I'm wondering if it is possible to have a tool to zoom in the selected region or have a magnifier follow the mouse, that can be toggled during a presentation?

Thank you so much!

mattwarkentin commented 2 years ago

@gadenbuie Once upon a time I hacked together a working image magnifier for Xaringan via magnifier.js. Just leaving the link here in case it is helpful. Also: https://github.com/mark-rolich/Magnifier.js/