3 ms·
cool thing is that it looks like the animation is pretty much generated from a json object (likely generated from the program). not that there's many other ways
by catshirt 15y ago
cool thing is that it looks like the animation is pretty much generated from a json object (likely generated from the program). not that there's many other ways to do it, but still a nice simple implementation.
http://labs.adobe.com/technologies/edge/resources/ferriswheel/Wheel_edge.js http://labs.adobe.com/technologies/edge/resources/ferriswhee...
- padolsey 15y agoTechnically, not JSON.
- niyazpk 15y agoWhy do you think it is not JSON?
- padolsey 15y agoIt's just a regular JS object. JSON !== JavaScript object notation. E.g. according to the JSON spec, you should always quote property names (`{"foo":123}`) but regular JS doesn't require this (`{foo:123}`). More: http://benalman.com/news/2010/03/theres-no-such-thing-as-a-json/ http://benalman.com/news/2010/03/theres-no-such-thing-as-a-j...
- catshirt 15y agosure, but somewhat irrelevant, since the point is that the object can be (and likely is at some point) deserialized from json.
- manish 15y agoWas it only in my browser the train was going faster on the inclines than on declines?
- lwhi 15y agoI thought the same. The animation does scale quite nicely though, which I found quite impressive.
- georgemcbay 15y agoI think this is because (as samwillis pointed out) the rollercoaster is actually going backwards, so the inclines are really the declines and vice versa. Why they are running the animation backwards is another question, though.
- AshleysBrain 15y agoThis and other tools like Hype seem to generate reams and reams of javascript (that file you linked is ~150kb of mostly repeats and slightly tweaked values). It seems a bit mad to me - is a large complex animation going to end up being a 1mb monolith of javascript?
- samwillis 15y agoThe rolercoster seems to be going backwards...