Show HN: Super Smooth Tab View – Made with Pure CSS3 and JavaScript
github.com
github.com
Some improvements that would be cool to see:
* keyboard shortcuts (up, down, left, right & esc to exit)
* the arrows behave differently when using the up & down vs left & right, up & down repeats grid items in the same column while left & right seem to shift to the previous or next row depending on where you are
* there’s a lot of JS on the page (it’s not just toggling classNames), maybe using CSS Grid or Flex could reduce some of that
* the HTML could probably be more semantic, less div elements, and maybe an actual list (ul or ol element), which could help make use of arrows more consistent
[0]: https://developer.mozilla.org/en-US/docs/Web/API/window/requ...
https://hg.mozilla.org/releases/mozilla-release/rev/7d280b7e...
Name: Firefox
Version: 61.0.1
Build ID: 20180704194802
OS: Linux 4.13.0-46-generic
Profiler output: https://imgur.com/a/sjYQAJp
Looks good though.
It's still very well put together. It'd be nice if this were possible without Javascript, but I don't think it is. It'd require some crazy scroll tricks to pull off, if it's even possible.
Edit: I see why now