Live data from Hacker News

Show HN: Amplify – A tiny script allowing inline image zoom

github.com

11–17 of 17 posts

Re: Show HN: Amplify – A tiny script allowing inline image zoom

#11
post #3

The demo link does not work for me on Firefox 55.0.3 on OSX 10.12.6 Works in Chrome, Safari and Opera.

Apparently the author of the project didn't fully implement flexbox properties, making it not work in IE/Firefox.

Reported the issue and suggested a fix: https://github.com/charlestati/amplify/issues/2

Re: Show HN: Amplify – A tiny script allowing inline image zoom

#15
post #8

how do you can use it in angular (2)?

The functionality is simple and mostly based on CSS, so just set relevant attributes in your template and toggle 'aria-expanded' on click as in the JS file[1]. Then, include (S)CSS copy which handles resizing based on above attribute[2].

All files other than those in src/ are just processing fluff and irrelevant for the actual functionality.

[1]: https://github.com/charlestati/amplify/blob/master/src/ampli... [2]: https://github.com/charlestati/amplify/blob/master/src/ampli...

Re: Show HN: Amplify – A tiny script allowing inline image zoom

#17
post #16

Similar with potentially smoother UX: - https://github.com/fat/zoom.js/ (jQuery) - https://github.com/nishanths/zoom.js/ (fork with no dependencies)

I don’t think so? Those are closer to lightboxes, they’re not really that “inline”
Post reply on HN