3 ms·
Author of OriDomi here. Really excited to see this at the top of HN. I recently pushed out version 1.0 with some new features that make OriDomi easier to use.
by dmotz 13y ago
Author of OriDomi here. Really excited to see this at the top of HN.
I recently pushed out version 1.0 with some new features that make OriDomi easier to use.
It now has an internal queueing system so you can chain up effect sequences instead of dealing with callback handlers. [1] What looks like a chain of synchronous calls will now be deferred and sequenced automatically, e.g.:
folded.curl(50).collapse().setSpeed(2000).stairs(-29).foldUp().unfold();
Secondly, OriDomi elements are now fully responsive, meaning they adapt to changing dimensions caused by media queries, window resizing, etc. You can see this behavior with the demos by resizing your browser, or on the current iteration of my personal site. [2]
Finally, there are two new methods that make it easy to do custom folding behavior and content manipulation, .map() [3] and .modifyContent() [4]. The former lets you pass your own function to define folding based on input angle and panel index.
It's still relatively lightweight with zero dependencies and 7.6KB gzipped and minified. More than anything, a testament to what you can do with the modern browser API.
Looking forward to seeing what else people do with it. Check out the annotated source [5] for a look at how it works.
[1] http://oridomi.com/#queueing http://oridomi.com/#queueing
[2] http://oxism.com http://oxism.com
[3] http://oridomi.com/#custom http://oridomi.com/#custom
[4] http://oridomi.com/#content-manipulation http://oridomi.com/#content-manipulation
[5] http://oridomi.com/docs/oridomi.html http://oridomi.com/docs/oridomi.html
- benihana 13y agoThis is really awesome, congrats!