{"action":"created","issue":{"url":"https://api.github.com/repos/Prinzhorn/skrollr/issues/787","labels_url":"https://api.github.com/repos/Prinzhorn/skrollr/issues/787/labels{/name}","comments_url":"https://api.github.com/repos/Prinzhorn/skrollr/issues/787/comments","events_url":"https://api.github.com/repos/Prinzhorn/skrollr/issues/787/events","html_url":"https://github.com/Prinzhorn/skrollr/issues/787","id":121463700,"number":787,"title":"Skrollr not working correctly on Ajax content load","user":{"login":"EvilDonkeyLondon","id":4377842,"avatar_url":"https://avatars.githubusercontent.com/u/4377842?v=3","gravatar_id":"","url":"https://api.github.com/users/EvilDonkeyLondon","html_url":"https://github.com/EvilDonkeyLondon","followers_url":"https://api.github.com/users/EvilDonkeyLondon/followers","following_url":"https://api.github.com/users/EvilDonkeyLondon/following{/other_user}","gists_url":"https://api.github.com/users/EvilDonkeyLondon/gists{/gist_id}","starred_url":"https://api.github.com/users/EvilDonkeyLondon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvilDonkeyLondon/subscriptions","organizations_url":"https://api.github.com/users/EvilDonkeyLondon/orgs","repos_url":"https://api.github.com/users/EvilDonkeyLondon/repos","events_url":"https://api.github.com/users/EvilDonkeyLondon/events{/privacy}","received_events_url":"https://api.github.com/users/EvilDonkeyLondon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-10T11:31:16Z","updated_at":"2015-12-10T13:35:37Z","closed_at":null,"body":"I have an element that changes opacity as you scroll and it works fine on first page load.\r\nThen the main content from other pages gets pulled with a jquery load() request. When I go back to the page with the element changing the opacity, this doesn't work anymore.\r\n\r\n    <div class=\"top-slide\" data-200-top=\"opacity: .9;\" data-top-bottom=\"opacity: 0;\" data-stellar-background-ratio=\"0.9\"></div>\r\n\r\nHere is the live example http://dev.thinktravellive.com/, the element that changes opacity is the big full width image just below the nav. If you click to another page and then click back to Home, Skrollr don't work anymore on the opacity but the weird thing is that it still (kind of) works on the sticky nav bar.\r\n\r\nThank you"},"comment":{"url":"https://api.github.com/repos/Prinzhorn/skrollr/issues/comments/163619544","html_url":"https://github.com/Prinzhorn/skrollr/issues/787#issuecomment-163619544","issue_url":"https://api.github.com/repos/Prinzhorn/skrollr/issues/787","id":163619544,"user":{"login":"EvilDonkeyLondon","id":4377842,"avatar_url":"https://avatars.githubusercontent.com/u/4377842?v=3","gravatar_id":"","url":"https://api.github.com/users/EvilDonkeyLondon","html_url":"https://github.com/EvilDonkeyLondon","followers_url":"https://api.github.com/users/EvilDonkeyLondon/followers","following_url":"https://api.github.com/users/EvilDonkeyLondon/following{/other_user}","gists_url":"https://api.github.com/users/EvilDonkeyLondon/gists{/gist_id}","starred_url":"https://api.github.com/users/EvilDonkeyLondon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvilDonkeyLondon/subscriptions","organizations_url":"https://api.github.com/users/EvilDonkeyLondon/orgs","repos_url":"https://api.github.com/users/EvilDonkeyLondon/repos","events_url":"https://api.github.com/users/EvilDonkeyLondon/events{/privacy}","received_events_url":"https://api.github.com/users/EvilDonkeyLondon/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T13:35:37Z","updated_at":"2015-12-10T13:35:37Z","body":"I fixed this with destroying and reinitializing skrollr in the ajax callback\r\n\r\n    skrollr.init().destroy();\r\n    s = skrollr.init({forceHeight: false});"}}