News for hackers. Stuff that matters.
Re:Mo.js – motion graphics for the web by TrevorJ on Friday November 20, 2015 @09:03PM (#10605166)
This is really cool. I'd love to see some sort of visual front end where you can set up your timeline and change position, tweening, and the like. I wonder how practical an exporter for After Effects would be? If this is made more accessible for artists, that would be awesome.
Re:Mo.js – motion graphics for the web by _neil on Friday November 20, 2015 @10:16PM (#10605381)
I haven't used this, but you might want to check out Bodymovin:

http://codepen.io/airnan/details/PqjwYM/ https://github.com/bodymovin/bodymovin

Re:Mo.js – motion graphics for the web by wildpeaks on Saturday November 21, 2015 @06:05AM (#10606460)
You can use XML Gibson (http://aescripts.com/xml-gibson) to export animations
Re:Mo.js – motion graphics for the web by nullstyle on Friday November 20, 2015 @08:09PM (#10604976)
The tutorial section is broken as hell, unfortunately.
Re:Mo.js – motion graphics for the web by shash7 on Friday November 20, 2015 @10:23PM (#10605404)
I second that, the links on the sidebar are not clickable.
Re:Mo.js – motion graphics for the web by Gxorgxo on Saturday November 21, 2015 @04:57AM (#10606353)
Same here, I can only see "Easing / Path Easing".
Re:Mo.js – motion graphics for the web by nacs on Friday November 20, 2015 @08:28PM (#10605043)
Works fine for me in Chrome.
Re:Mo.js – motion graphics for the web by pixelHD on Saturday November 21, 2015 @03:52AM (#10606229)
Windows 10/Chrome 47(x64) links don't work for me
Re:Mo.js – motion graphics for the web by teddyh on Saturday November 21, 2015 @01:51AM (#10605964)
This is motion graphics for the web, not motion graphics for Chrome.
Re:Mo.js – motion graphics for the web by nacs on Saturday November 21, 2015 @09:24AM (#10606864)
My statement was to confirm which browser it does work in to narrow it down.

You may want to state which browser you're having problems with to the developer instead of making a useless remark like the one you just made.

Re:Mo.js – motion graphics for the web by erikpukinskis on Friday November 20, 2015 @10:39PM (#10605442)
It's interesting, declarative APIs are amazing for a demo... A single function call can make literally anything possible. But when you eventually want to do something interactive, a declarative API can't work, and you need to learn a separate imperative API anyway... At which point what was the point of the declarative one in the first place?
Re:Mo.js – motion graphics for the web by davidkpiano on Friday November 20, 2015 @11:01PM (#10605517)
Hm? Can you give an example where you would need to use an imperative API? Plus, .run() is imperative.
Re:Mo.js – motion graphics for the web by erikpukinskis on Saturday November 21, 2015 @08:52PM (#10608760)
Adding additional elements on tap?
Re:Mo.js – motion graphics for the web by lobster_johnson on Friday November 20, 2015 @08:18PM (#10605004)
As always with front-end libraries these days, my first question is: Does it play nice with React?
Re:Mo.js – motion graphics for the web by zackify on Friday November 20, 2015 @08:58PM (#10605140)
let's just make a wrapper :D
Re:Mo.js – motion graphics for the web by lobster_johnson on Friday November 20, 2015 @09:02PM (#10605161)
React generally requires more than just a wrapper, since its virtual DOM is populated in a highly controlled manner that libraries need to follow. But you can try.
Re:Mo.js – motion graphics for the web by btown on Friday November 20, 2015 @10:12PM (#10605367)
Actually it's pretty trivial. You can always just have your render function be just a static div, set a ref to the div, and do setup in componentDidMount and updates in componentWillUpdate. Since the render function will always return a trivially identical subtree, it will never change that DOM node. Of course, if your component moves in the HTML hierarchy, your animation may restart, but that's unlikely in most use cases.
Re:Mo.js – motion graphics for the web by lobster_johnson on Saturday November 21, 2015 @01:17AM (#10605895)
Depends. Animation tends to be about transitions, so you want to transition between elements. For that you need to handle the virtual DOM.

Twitter's Velocity [1] wrapper is an example of something that works like this, though the authors admit their solution is not idiomatic React.

[1] https://github.com/twitter-fabric/velocity-react#readme

Re:Mo.js – motion graphics for the web by nkozyra on Friday November 20, 2015 @09:32PM (#10605262)
As opposed to, say, server-side graphical libraries for the web?
Re:Mo.js – motion graphics for the web by lobster_johnson on Friday November 20, 2015 @09:39PM (#10605284)
Well, yes.
Re:Mo.js – motion graphics for the web by nkozyra on Friday November 20, 2015 @10:53PM (#10605482)
I'll get right on that "I generated a jpeg" post then!
Re:Mo.js – motion graphics for the web by Bjorkbat on Friday November 20, 2015 @09:52PM (#10605318)
This is great. I've been wanting to play around with motion graphics for a while now but am kinda on the fence about learning process.

This is much more aligned with my style.

Re:Mo.js – motion graphics for the web by pedalpete on Thursday November 19, 2015 @05:41PM (#10598219)
Though animations like these are nice, can somebody give some examples of svg animations that are a part of the usable interface?

For example, we have animating buttons and panels and UX elements, which I can't imagine doing in SVG.

Waiting bubbles, etc. are great, I'm just not sure of the widespread value. Happy to be shown a different view though.

Re:Mo.js – motion graphics for the web by ogig on Friday November 20, 2015 @10:19PM (#10605392)
Shopify uses animated svgs in the admin panel ui, they even wrote a nice blog post about it.

>A lot of the feedback we’ve gotten from front-end developers has been along the lines of “that’s cool! Did you use images or CSS for [that effect]?” In most cases, the answer was actually neither, because most of the fun graphics, animations, and effects rely heavily on SVG with a bit of JavaScript and some clever Rails helpers.

https://www.shopify.com/technology/17105760-building-year-in...

Re:Mo.js – motion graphics for the web by grrowl on Friday November 20, 2015 @10:52PM (#10605480)
I thought the bubble demo was pretty cool: http://codepen.io/sol0mka/full/yNOage/
Re:Mo.js – motion graphics for the web by armandososa on Friday November 20, 2015 @08:01PM (#10604956)
The new heart animation of Twitter looks like something that could've been done this way.
Re:Mo.js – motion graphics for the web by capex on Friday November 20, 2015 @07:30PM (#10604833)
I think this could be used for creating explainer graphics.
Re:Mo.js – motion graphics for the web by andrewmcwatters on Friday November 20, 2015 @08:39PM (#10605086)
I remember seeing the initial demo of this back when it was debuted. Glad to see it worked on!
Re:Mo.js – motion graphics for the web by chinchang on Saturday November 21, 2015 @04:31AM (#10606301)
its finally here. So excited to use this.