Re:Show HN: Amplify – A tiny script allowing inline image zoom
by blauditore on Monday September 18, 2017 @10:14AM
(#15276106)
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.
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...