3 ms·
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].
by blauditore 9y ago
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/amplify.js https://github.com/charlestati/amplify/blob/master/src/ampli...
[2]: https://github.com/charlestati/amplify/blob/master/src/amplify.scss https://github.com/charlestati/amplify/blob/master/src/ampli...