lingxz / er

:snail: a hugo theme
https://themes.gohugo.io/theme/er/
MIT License
59 stars 25 forks source link

[Feature Request] Medium-like image zoom #15

Open rootkea opened 5 years ago

rootkea commented 5 years ago

Hello!

Often, the user wants to zoom the image and take a good look at image details. Currently, I achieve this by right-clicking on image, then holding Ctrl and click "View Image" from context menu. Then shift to new tab opened and then finally click on the image to zoom in-out.

This is a lot of unnecessary distraction which breaks the reading flow of user.

It would preserve the reading flow if we implement medium-like zoom which is already implemented by Hugo theme Pickles using zoom.js

Here is the live demo in action: https://rootkea.gitlab.io/posts/image-zoom-sample/ And here is the screencast of the same: foo

I'm not sure whether this fits with the Er's design, though.