5 ms·
Show HN: Choreographer-JS, a simple way to handle complicated animations
- fimdomeio 10y agothis does not work with time based animations right? A tool that would be really nice for developing time based animations would be one where you could switch easily between time and mouse movement.
- christinecha 10y agoIt works for any measurement! That choice is left completely up to the user. Instead of wrapping it in an event handler, you might instead set a variable for 'start time', run animations on requestAnimationFrame, and pass in the current time.
- SparkyMcUnicorn 10y agoThe documentation indicates that this library doesn't really handle the events at all (which is great imo). The getting started has more info on this. https://github.com/christinecha/choreographer-js#get-started https://github.com/christinecha/choreographer-js#get-started Looks awesome!
- porkloin 10y agoJust an FYI, the scroll-hacking on the home page doesn't work with arrow key or hotkey based scrolling (for example, vimium or vimperator extensions for j/k key scrolling) - obviously a small subset of users, but I know a lot of non-dev users that use arrow keys or page up/down to scroll on web pages too.
- ajacksified 10y agoWorks with arrow keys on Chrome / OSX for me.
- rajangdavis 10y agoThis is pretty sweet using a desktop browser, but the animations can be a little choppy on mobile. Is this more because of how mobile browsers work or are there parts of the library that can be improved performance wise?