There's a related annoyance I've had for a while now: I grew up reading PC Gamer magazine and one of the great things about it was, for me, seeing the fancy new graphics coming out in large, glossy screenshots. Now, I read Rock Paper Shotgun and PC Gamer online and the screenshots are tiny, tiny things! On screenshot-focused articles, they'll be expandable but on most they're just little blocks the size of the textbox I'm writing in right now. And even when they are expandable, they almost never actually let you expand to full-screen. It kills some of the fun for me - but I guess now we have fullscreen video to more than make up for it though I don't always want to watch a video.
While expanding them inline would be nice, it doesn't really fix the problem that they're serving tiny images.
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.
16 comments
[ 2.8 ms ] story [ 49.3 ms ] threadWorks in Chrome, Safari and Opera.
Reported the issue and suggested a fix: https://github.com/charlestati/amplify/issues/2
While expanding them inline would be nice, it doesn't really fix the problem that they're serving tiny images.
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...
- https://github.com/fat/zoom.js/ (jQuery)
- https://github.com/nishanths/zoom.js/ (fork with no dependencies)