{"action":"created","issue":{"url":"https://api.github.com/repos/shshaw/Canvallax/issues/1","repository_url":"https://api.github.com/repos/shshaw/Canvallax","labels_url":"https://api.github.com/repos/shshaw/Canvallax/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/shshaw/Canvallax/issues/1/comments","events_url":"https://api.github.com/repos/shshaw/Canvallax/issues/1/events","html_url":"https://github.com/shshaw/Canvallax/issues/1","id":183904247,"number":1,"title":"Cavallax with the cloud example is not working","user":{"login":"zivl","id":4571570,"avatar_url":"https://avatars.githubusercontent.com/u/4571570?v=3","gravatar_id":"","url":"https://api.github.com/users/zivl","html_url":"https://github.com/zivl","followers_url":"https://api.github.com/users/zivl/followers","following_url":"https://api.github.com/users/zivl/following{/other_user}","gists_url":"https://api.github.com/users/zivl/gists{/gist_id}","starred_url":"https://api.github.com/users/zivl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zivl/subscriptions","organizations_url":"https://api.github.com/users/zivl/orgs","repos_url":"https://api.github.com/users/zivl/repos","events_url":"https://api.github.com/users/zivl/events{/privacy}","received_events_url":"https://api.github.com/users/zivl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-19T09:00:37Z","updated_at":"2016-10-19T20:02:03Z","closed_at":"2016-10-19T20:02:03Z","body":"I took the example shown in codepen: http://codepen.io/shshaw/pen/ZbExyV \r\nand I get an error: `Canvallax.js:80 Uncaught TypeError: Cannot read property 'scrollLeft' of null`\r\nLooks like the line `body = doc.body` gets a `null` since `doc.body` is `null`\r\n\r\nwithout changing anything, just copying the example from there and it is not working.\r\nmy `html` looks like that (I omitted the `html` and `head` tags):\r\n```\r\n<body>\r\n<script>\r\nvar can = Canvallax({\r\n\t\tclassName: 'bg-canvas',\r\n\t\tdamping: 40\r\n\t});\r\n/* then the //Clouds part and the rest of the Canvallax example */\r\n</script>\r\n</body>\r\n```\r\n\r\nIt doesn't even get to the clouds part... What am I missing??"},"comment":{"url":"https://api.github.com/repos/shshaw/Canvallax/issues/comments/254924125","html_url":"https://github.com/shshaw/Canvallax/issues/1#issuecomment-254924125","issue_url":"https://api.github.com/repos/shshaw/Canvallax/issues/1","id":254924125,"user":{"login":"shshaw","id":777155,"avatar_url":"https://avatars.githubusercontent.com/u/777155?v=3","gravatar_id":"","url":"https://api.github.com/users/shshaw","html_url":"https://github.com/shshaw","followers_url":"https://api.github.com/users/shshaw/followers","following_url":"https://api.github.com/users/shshaw/following{/other_user}","gists_url":"https://api.github.com/users/shshaw/gists{/gist_id}","starred_url":"https://api.github.com/users/shshaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shshaw/subscriptions","organizations_url":"https://api.github.com/users/shshaw/orgs","repos_url":"https://api.github.com/users/shshaw/repos","events_url":"https://api.github.com/users/shshaw/events{/privacy}","received_events_url":"https://api.github.com/users/shshaw/received_events","type":"User","site_admin":false},"created_at":"2016-10-19T20:02:03Z","updated_at":"2016-10-19T20:02:03Z","body":"Ah yes, glad you figured it out.\r\n\r\nIt's best to include scripts at the very end, right before the `</body>` tag so scripts won't prevent the browser from rendering the rest of the page. I developed Canvallax with that in mind, but I believe I've added a check for this in Canvallax 2 to prevent the same error."}}
{"actor":{"display_login":"shshaw"}}