Skip to content

Instantly share code, notes, and snippets.

View aks-'s full-sized avatar
๐Ÿ˜€

Ashok aks-

๐Ÿ˜€
  • Hamburg, Germany
View GitHub Profile
@aks-
aks- / gist:3d9f9b8f7f6203dbfb41
Created October 25, 2015 15:58 — forked from chenglou/gist:40b75d820123a9ed53d8
Thoughts on Animation

Interesting part (unmounting & API) is at the end if you're not interested in the rest =).

Stress Tests

This animation proposal is just an attempt. In case it doesn't work out, I've gathered a few examples that can test the power of a future animation system.

  1. Parent is an infinitely spinning ball, and has a child ball that is also spinning. Clicking on the parent causes child to reverse spinning direction. This tests the ability of the animation system to compose animation, not in the sense of applying multiple interpolations to one or more variables passed onto the child (this should be trivial), but in the sense that the parent's constantly updating at the same time as the child, and has to ensure that it passes the animation commands correctly to it. This also tests that we can still intercept these animations (the clicking) and immediately change their configuration instead of queueing them.

  2. Typing letters and let them fly in concurrently. This tests concurrency, coordination of an array of ch