{"action":"created","issue":{"url":"https://api.github.com/repos/chenglou/react-motion/issues/142","labels_url":"https://api.github.com/repos/chenglou/react-motion/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/chenglou/react-motion/issues/142/comments","events_url":"https://api.github.com/repos/chenglou/react-motion/issues/142/events","html_url":"https://github.com/chenglou/react-motion/issues/142","id":104202872,"number":142,"title":"Expose some dev-time util for getting a duration estimation","user":{"login":"chenglou","id":1909539,"avatar_url":"https://avatars.githubusercontent.com/u/1909539?v=3","gravatar_id":"","url":"https://api.github.com/users/chenglou","html_url":"https://github.com/chenglou","followers_url":"https://api.github.com/users/chenglou/followers","following_url":"https://api.github.com/users/chenglou/following{/other_user}","gists_url":"https://api.github.com/users/chenglou/gists{/gist_id}","starred_url":"https://api.github.com/users/chenglou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenglou/subscriptions","organizations_url":"https://api.github.com/users/chenglou/orgs","repos_url":"https://api.github.com/users/chenglou/repos","events_url":"https://api.github.com/users/chenglou/events{/privacy}","received_events_url":"https://api.github.com/users/chenglou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-01T07:22:29Z","updated_at":"2015-10-28T02:28:54Z","closed_at":null,"body":"I'm still against hard-coded duration, and RM likely won't expose a spring where the user specifies one of `{stiffness, damping}`, and the spring gives the other, given a determined duration. The moment we do that, interruptible animation becomes unsolved again.\r\n\r\nFor the people who wanted to have a feel of how long a spring lasts, I've directed to https://cdn.rawgit.com/chenglou/react-motion/e8f42dcd9678a8cea8648a3cf4f994583a99e7f7/demos/demo5/index.html\r\nThere might be a potential counter-argument (though so far I haven't heard of it; but just in case...) that this is \"imprecise\". Except the duration is also most of the time very arbitrary and based on a \"feel\". At least here, it respects the laws of physics.\r\n\r\nThat being said, I might consider exposing a dev-time only util which accomplishes what I said in the first paragraph, or more (e.g. \"what's a faster spring that looks like this one?). A typical workflow would be to `console.log` the output of these... or integrate this into the new React devtools.\r\n\r\n@threepointone \r\n"},"comment":{"url":"https://api.github.com/repos/chenglou/react-motion/issues/comments/151702310","html_url":"https://github.com/chenglou/react-motion/issues/142#issuecomment-151702310","issue_url":"https://api.github.com/repos/chenglou/react-motion/issues/142","id":151702310,"user":{"login":"chenglou","id":1909539,"avatar_url":"https://avatars.githubusercontent.com/u/1909539?v=3","gravatar_id":"","url":"https://api.github.com/users/chenglou","html_url":"https://github.com/chenglou","followers_url":"https://api.github.com/users/chenglou/followers","following_url":"https://api.github.com/users/chenglou/following{/other_user}","gists_url":"https://api.github.com/users/chenglou/gists{/gist_id}","starred_url":"https://api.github.com/users/chenglou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenglou/subscriptions","organizations_url":"https://api.github.com/users/chenglou/orgs","repos_url":"https://api.github.com/users/chenglou/repos","events_url":"https://api.github.com/users/chenglou/events{/privacy}","received_events_url":"https://api.github.com/users/chenglou/received_events","type":"User","site_admin":false},"created_at":"2015-10-28T02:28:54Z","updated_at":"2015-10-28T02:28:54Z","body":"That's the intended behaviour of the demo. First column is invisible because it's wobbling too hard and second column too. You've probably hit a negative configuration. They're a few numbers smaller than whatever you're manipulating (likewise the following columns are a few numbers bigger than your current cell). There's no reason to hide the undefined behaviour when you set e.g. a negative damping.\r\n\r\nDuration makes interruptible animation complicated."}}