francoischalifour / medium-zoom

🔎🖼 A JavaScript library for zooming images like Medium
https://medium-zoom.francoischalifour.com
MIT License
3.64k stars 165 forks source link

Creating a NYT-Style Theme for Medium Zoom #150

Open kerns opened 4 years ago

kerns commented 4 years ago

It would be really great if someone took up the challenge of creating a theme for medium zoom based on the NYT's image zoom. Not sure if it's possible, but I would love to do any of the UI and CSS work needed and think it would be a great edition.

That means adding a close button and displaying a caption beside the image in a flex container.

2020-02-13 19 09 26 2

francoischalifour commented 4 years ago

The Dropbox Paper example (see demo) is really similar to this. You can get inspiration from there!

kerns commented 4 years ago

Thanks! but I'll disagree that it's so similar as to make a new NYT-inspired theme redundant. The Dropbox Paper theme disables dismiss-via-scroll, ...and it doesn't port any data associated with the image over to the zoomed state.

I was actually fishing for someone who might want to help make it, ...but didn't want to tackle the tedious parts of UI and CSS animations (close button, caption fade-in/out) that I was able to contribute.

francoischalifour commented 4 years ago

I see, I didn't get the original intent.

At this stage I would suggest defining clearly what the Medium Zoom theme should do, and then start an implementation as a PR so that people can contribute to improve it?

kerns commented 4 years ago

Thanks. I will try this. Please be patient with me as I proceed to screw it up. But maybe we can get there with it eventually.

kerns commented 4 years ago

Thanks. I will try this. Please be patient with me as I proceed to screw it up. But maybe we can get there with it eventually.

Hoping to tackle it this summer...