{"action":"opened","issue":{"url":"https://api.github.com/repos/michalsnik/aos/issues/8","repository_url":"https://api.github.com/repos/michalsnik/aos","labels_url":"https://api.github.com/repos/michalsnik/aos/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/michalsnik/aos/issues/8/comments","events_url":"https://api.github.com/repos/michalsnik/aos/issues/8/events","html_url":"https://github.com/michalsnik/aos/issues/8","id":158847364,"number":8,"title":"Use getBoundingClientRect to get element's offset","user":{"login":"herschel666","id":520258,"avatar_url":"https://avatars.githubusercontent.com/u/520258?v=3","gravatar_id":"","url":"https://api.github.com/users/herschel666","html_url":"https://github.com/herschel666","followers_url":"https://api.github.com/users/herschel666/followers","following_url":"https://api.github.com/users/herschel666/following{/other_user}","gists_url":"https://api.github.com/users/herschel666/gists{/gist_id}","starred_url":"https://api.github.com/users/herschel666/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/herschel666/subscriptions","organizations_url":"https://api.github.com/users/herschel666/orgs","repos_url":"https://api.github.com/users/herschel666/repos","events_url":"https://api.github.com/users/herschel666/events{/privacy}","received_events_url":"https://api.github.com/users/herschel666/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-07T06:17:15Z","updated_at":"2016-06-07T06:17:15Z","closed_at":null,"body":"Atm you ask for `.offsetLeft` and `.offsetTop` on each parent element, which each triggers a reflow and leads to layout thrashing. When switching to `.getBoundingClientRect()` you minimize the amount to a single reflow.\r\n\r\n(https://gist.github.com/paulirish/5d52fb081b3570c81e3a)"}}
{"actor":{"display_login":"herschel666"}}