r/javascript • u/tinchox5 • Oct 29 '26
Since 2017 I've been trying to get zoom navigation right. Zumly is the closest I've got
https://zumerlab.com/zumly/
33
Upvotes
r/javascript • u/tinchox5 • Oct 29 '26
3
u/tinchox5 Oct 29 '26
I started Zircle UI, a Vue library for zooming interfaces, on August 13, 2017. Zumly is the closest I've come to what I was looking for back then.
It's a JS library for zoom navigation. Your UI is a set of views. You mark an element as a trigger, and clicking it zooms into it while the next view grows out of that element. Going back zooms out along the same path, and the views you came from wait behind, dimmed. Siblings at the same level slide sideways. It's not an infinite canvas like Prezi: you move in steps.
You write the HTML and CSS, Zumly computes and animates the transforms. Other bits:
What I worked on most lately is heavy views. Scaling a view with thousands of nodes or a backdrop-filter on every frame is expensive. There's now an optional webgl mode: the views behind become textures (captured with SnapDOM, another library of mine), blur and dimming happen in a shader, and only the view you're in is DOM. On my MacBook the GPU during a zoom went from 40-70% to 7-8%. The cost is a 30-45 ms wait for a snapshot before zooming in, and you can take it on hover instead.
Demo (the site is built with Zumly): https://zumerlab.com/zumly/ A phone home screen where you can switch between DOM, SnapDOM captures and WebGL: https://zumerlab.com/zumly/showcases/phone.html?mode=webgl
MIT, no dependencies (SnapDOM only for the WebGL mode). I'd like to know where you'd use this kind of navigation and where it gets in the way.
2
u/eyamil 29d ago edited 29d ago
I really like this! I haven’t looked at usage/documentation yet, but I’m seeing that parts of the page look different zoomed in vs out and I’m curious to know whether the views in the different states are specified by hand or whether they’re automatically computed
Edit: typo
3
u/boneskull Oct 30 '26
This is pretty damn cool.
-5
u/feketegy Oct 30 '26
Another day another slop.
-1
u/[deleted] Oct 30 '26
[removed] — view removed comment