{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/browser.html/pulls/comments/46749333","id":46749333,"diff_hunk":"@@ -56,20 +58,40 @@ export const open/*:type.open*/ = (id, options) => ({\n   navigation: Navigation.initiate(options.uri),\n   page: Page.initiate(options.uri),\n   progress: null,\n+  animation: null\n })\n \n-const selected = {isSelected: true};\n-const unselected = {isSelected: false};\n+const unselectTransitionDuration = 300;\n+const selectTarnsitionDuration = 400;\n \n-export const select/*:type.select*/ = model =>\n-  model.isSelected ?\n-    model :\n-    merge(model, selected);\n+export const select/*:type.select*/ = model => {\n+  if (model.isSelected) {\n+    return [model, Effects.none];\n+  }\n+  else {\n+    const [animation, fx]\n+      = Animation.initialize(performance.now(), selectTarnsitionDuration);","path":"src/browser/web-view.js","position":31,"original_position":31,"commit_id":"011e561c13d6965d52692a6c94f44de604ac891d","original_commit_id":"011e561c13d6965d52692a6c94f44de604ac891d","user":{"login":"gordonbrander","id":58421,"avatar_url":"https://avatars.githubusercontent.com/u/58421?v=3","gravatar_id":"","url":"https://api.github.com/users/gordonbrander","html_url":"https://github.com/gordonbrander","followers_url":"https://api.github.com/users/gordonbrander/followers","following_url":"https://api.github.com/users/gordonbrander/following{/other_user}","gists_url":"https://api.github.com/users/gordonbrander/gists{/gist_id}","starred_url":"https://api.github.com/users/gordonbrander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gordonbrander/subscriptions","organizations_url":"https://api.github.com/users/gordonbrander/orgs","repos_url":"https://api.github.com/users/gordonbrander/repos","events_url":"https://api.github.com/users/gordonbrander/events{/privacy}","received_events_url":"https://api.github.com/users/gordonbrander/received_events","type":"User","site_admin":false},"body":"Also typo here.","created_at":"2015-12-05T00:42:07Z","updated_at":"2015-12-05T00:42:07Z","html_url":"https://github.com/mozilla/browser.html/pull/765#discussion_r46749333","pull_request_url":"https://api.github.com/repos/mozilla/browser.html/pulls/765","_links":{"self":{"href":"https://api.github.com/repos/mozilla/browser.html/pulls/comments/46749333"},"html":{"href":"https://github.com/mozilla/browser.html/pull/765#discussion_r46749333"},"pull_request":{"href":"https://api.github.com/repos/mozilla/browser.html/pulls/765"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/browser.html/pulls/765","id":52739157,"html_url":"https://github.com/mozilla/browser.html/pull/765","diff_url":"https://github.com/mozilla/browser.html/pull/765.diff","patch_url":"https://github.com/mozilla/browser.html/pull/765.patch","issue_url":"https://api.github.com/repos/mozilla/browser.html/issues/765","number":765,"state":"open","locked":false,"title":"Implement tab crossfade animations.","user":{"login":"Gozala","id":21236,"avatar_url":"https://avatars.githubusercontent.com/u/21236?v=3","gravatar_id":"","url":"https://api.github.com/users/Gozala","html_url":"https://github.com/Gozala","followers_url":"https://api.github.com/users/Gozala/followers","following_url":"https://api.github.com/users/Gozala/following{/other_user}","gists_url":"https://api.github.com/users/Gozala/gists{/gist_id}","starred_url":"https://api.github.com/users/Gozala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gozala/subscriptions","organizations_url":"https://api.github.com/users/Gozala/orgs","repos_url":"https://api.github.com/users/Gozala/repos","events_url":"https://api.github.com/users/Gozala/events{/privacy}","received_events_url":"https://api.github.com/users/Gozala/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-05T00:27:19Z","updated_at":"2015-12-05T00:42:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"32481189bb2cd53c10cce42d49cd499c5b2b5d84","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/browser.html/pulls/765/commits","review_comments_url":"https://api.github.com/repos/mozilla/browser.html/pulls/765/comments","review_comment_url":"https://api.github.com/repos/mozilla/browser.html/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/browser.html/issues/765/comments","statuses_url":"https://api.github.com/repos/mozilla/browser.html/statuses/011e561c13d6965d52692a6c94f44de604ac891d","head":{"label":"Gozala:tab-switch-animation","ref":"tab-switch-animation","sha":"011e561c13d6965d52692a6c94f44de604ac891d","user":{"login":"Gozala","id":21236,"avatar_url":"https://avatars.githubusercontent.com/u/21236?v=3","gravatar_id":"","url":"https://api.github.com/users/Gozala","html_url":"https://github.com/Gozala","followers_url":"https://api.github.com/users/Gozala/followers","following_url":"https://api.github.com/users/Gozala/following{/other_user}","gists_url":"https://api.github.com/users/Gozala/gists{/gist_id}","starred_url":"https://api.github.com/users/Gozala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gozala/subscriptions","organizations_url":"https://api.github.com/users/Gozala/orgs","repos_url":"https://api.github.com/users/Gozala/repos","events_url":"https://api.github.com/users/Gozala/events{/privacy}","received_events_url":"https://api.github.com/users/Gozala/received_events","type":"User","site_admin":false},"repo":{"id":28829395,"name":"browser.html","full_name":"Gozala/browser.html","owner":{"login":"Gozala","id":21236,"avatar_url":"https://avatars.githubusercontent.com/u/21236?v=3","gravatar_id":"","url":"https://api.github.com/users/Gozala","html_url":"https://github.com/Gozala","followers_url":"https://api.github.com/users/Gozala/followers","following_url":"https://api.github.com/users/Gozala/following{/other_user}","gists_url":"https://api.github.com/users/Gozala/gists{/gist_id}","starred_url":"https://api.github.com/users/Gozala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gozala/subscriptions","organizations_url":"https://api.github.com/users/Gozala/orgs","repos_url":"https://api.github.com/users/Gozala/repos","events_url":"https://api.github.com/users/Gozala/events{/privacy}","received_events_url":"https://api.github.com/users/Gozala/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Gozala/browser.html","description":"Experimental browser built in HTML","fork":true,"url":"https://api.github.com/repos/Gozala/browser.html","forks_url":"https://api.github.com/repos/Gozala/browser.html/forks","keys_url":"https://api.github.com/repos/Gozala/browser.html/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Gozala/browser.html/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Gozala/browser.html/teams","hooks_url":"https://api.github.com/repos/Gozala/browser.html/hooks","issue_events_url":"https://api.github.com/repos/Gozala/browser.html/issues/events{/number}","events_url":"https://api.github.com/repos/Gozala/browser.html/events","assignees_url":"https://api.github.com/repos/Gozala/browser.html/assignees{/user}","branches_url":"https://api.github.com/repos/Gozala/browser.html/branches{/branch}","tags_url":"https://api.github.com/repos/Gozala/browser.html/tags","blobs_url":"https://api.github.com/repos/Gozala/browser.html/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Gozala/browser.html/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Gozala/browser.html/git/refs{/sha}","trees_url":"https://api.github.com/repos/Gozala/browser.html/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Gozala/browser.html/statuses/{sha}","languages_url":"https://api.github.com/repos/Gozala/browser.html/languages","stargazers_url":"https://api.github.com/repos/Gozala/browser.html/stargazers","contributors_url":"https://api.github.com/repos/Gozala/browser.html/contributors","subscribers_url":"https://api.github.com/repos/Gozala/browser.html/subscribers","subscription_url":"https://api.github.com/repos/Gozala/browser.html/subscription","commits_url":"https://api.github.com/repos/Gozala/browser.html/commits{/sha}","git_commits_url":"https://api.github.com/repos/Gozala/browser.html/git/commits{/sha}","comments_url":"https://api.github.com/repos/Gozala/browser.html/comments{/number}","issue_comment_url":"https://api.github.com/repos/Gozala/browser.html/issues/comments{/number}","contents_url":"https://api.github.com/repos/Gozala/browser.html/contents/{+path}","compare_url":"https://api.github.com/repos/Gozala/browser.html/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Gozala/browser.html/merges","archive_url":"https://api.github.com/repos/Gozala/browser.html/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Gozala/browser.html/downloads","issues_url":"https://api.github.com/repos/Gozala/browser.html/issues{/number}","pulls_url":"https://api.github.com/repos/Gozala/browser.html/pulls{/number}","milestones_url":"https://api.github.com/repos/Gozala/browser.html/milestones{/number}","notifications_url":"https://api.github.com/repos/Gozala/browser.html/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Gozala/browser.html/labels{/name}","releases_url":"https://api.github.com/repos/Gozala/browser.html/releases{/id}","created_at":"2015-01-05T20:07:15Z","updated_at":"2015-02-26T07:22:55Z","pushed_at":"2015-12-05T00:35:47Z","git_url":"git://github.com/Gozala/browser.html.git","ssh_url":"git@github.com:Gozala/browser.html.git","clone_url":"https://github.com/Gozala/browser.html.git","svn_url":"https://github.com/Gozala/browser.html","homepage":null,"size":6720,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla:perspective-ui","ref":"perspective-ui","sha":"754677deb6ee4e17a228e90e039ab648626436a5","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":28800891,"name":"browser.html","full_name":"mozilla/browser.html","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/browser.html","description":"Experimental browser built in HTML","fork":false,"url":"https://api.github.com/repos/mozilla/browser.html","forks_url":"https://api.github.com/repos/mozilla/browser.html/forks","keys_url":"https://api.github.com/repos/mozilla/browser.html/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/browser.html/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/browser.html/teams","hooks_url":"https://api.github.com/repos/mozilla/browser.html/hooks","issue_events_url":"https://api.github.com/repos/mozilla/browser.html/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/browser.html/events","assignees_url":"https://api.github.com/repos/mozilla/browser.html/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/browser.html/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/browser.html/tags","blobs_url":"https://api.github.com/repos/mozilla/browser.html/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/browser.html/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/browser.html/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/browser.html/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/browser.html/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/browser.html/languages","stargazers_url":"https://api.github.com/repos/mozilla/browser.html/stargazers","contributors_url":"https://api.github.com/repos/mozilla/browser.html/contributors","subscribers_url":"https://api.github.com/repos/mozilla/browser.html/subscribers","subscription_url":"https://api.github.com/repos/mozilla/browser.html/subscription","commits_url":"https://api.github.com/repos/mozilla/browser.html/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/browser.html/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/browser.html/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/browser.html/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/browser.html/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/browser.html/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/browser.html/merges","archive_url":"https://api.github.com/repos/mozilla/browser.html/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/browser.html/downloads","issues_url":"https://api.github.com/repos/mozilla/browser.html/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/browser.html/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/browser.html/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/browser.html/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/browser.html/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/browser.html/releases{/id}","created_at":"2015-01-05T06:39:24Z","updated_at":"2015-11-30T09:16:17Z","pushed_at":"2015-12-05T00:35:47Z","git_url":"git://github.com/mozilla/browser.html.git","ssh_url":"git@github.com:mozilla/browser.html.git","clone_url":"https://github.com/mozilla/browser.html.git","svn_url":"https://github.com/mozilla/browser.html","homepage":null,"size":49752,"stargazers_count":866,"watchers_count":866,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":78,"mirror_url":null,"open_issues_count":160,"forks":78,"open_issues":160,"watchers":866,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/browser.html/pulls/765"},"html":{"href":"https://github.com/mozilla/browser.html/pull/765"},"issue":{"href":"https://api.github.com/repos/mozilla/browser.html/issues/765"},"comments":{"href":"https://api.github.com/repos/mozilla/browser.html/issues/765/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/browser.html/pulls/765/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/browser.html/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/browser.html/pulls/765/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/browser.html/statuses/011e561c13d6965d52692a6c94f44de604ac891d"}}}}