remark icon indicating copy to clipboard operation
remark copied to clipboard

Suggestion: Zoom.js

Open LukeTOBrien opened this issue 6 years ago • 3 comments

Hello there,

I have been interested in Markdown presentation Frameworks, I am interested in Remark because I like the simplicity and I want to keep my text and assets separate from my presentation.

I have also looked at Reveal.js and I like some of their features, mostly the use of Zoom.js
It looks such a simple API, would it be possible for you to incorporate it in your own framework?

The other this I would say as an aside is that there doesn't seem to be a NPM package, I download this one which is something different with the same name.

LukeTOBrien avatar Mar 03 '18 14:03 LukeTOBrien

Hi there, I am also missing this kind of feature. Have you found any solution?

lichtner avatar Jun 04 '19 10:06 lichtner

Hi all,

this is a really wonderful project! Regarding the use of zoom.js, the following works seamless for me:

<script src="https://lab.hakim.se/zoom-js/js/zoom.js" type="text/javascript"></script>
<script type="text/javascript">
	var slideshow = remark.create();

	slideshow.on( "beforeHideSlide", function( slide ) {
		zoom.out();
	} );
	slideshow.on( "afterShowSlide", function( slide ) {
		document.querySelector( ".remark-visible" ).addEventListener( "click", function( event ) {
			event.preventDefault();
			zoom.out();
			zoom.to( {element: event.target} );
		} );
	} );
</script>


srkuberski avatar Nov 18 '20 20:11 srkuberski

Hi,

I added the script above by @murtex, but I'm still having the same issue that pinch-to-zoom triggers a navigation event (also described in #635 and yihui/xaringan#226). Any insights would be appreciated. Thanks.

frfeng avatar May 17 '21 00:05 frfeng