{"action":"created","issue":{"url":"https://api.github.com/repos/jlmakes/scrollreveal.js/issues/276","repository_url":"https://api.github.com/repos/jlmakes/scrollreveal.js","labels_url":"https://api.github.com/repos/jlmakes/scrollreveal.js/issues/276/labels{/name}","comments_url":"https://api.github.com/repos/jlmakes/scrollreveal.js/issues/276/comments","events_url":"https://api.github.com/repos/jlmakes/scrollreveal.js/issues/276/events","html_url":"https://github.com/jlmakes/scrollreveal.js/issues/276","id":167156919,"number":276,"title":"Don't reveal without scroll","user":{"login":"thiagosyncmob","id":6214611,"avatar_url":"https://avatars.githubusercontent.com/u/6214611?v=3","gravatar_id":"","url":"https://api.github.com/users/thiagosyncmob","html_url":"https://github.com/thiagosyncmob","followers_url":"https://api.github.com/users/thiagosyncmob/followers","following_url":"https://api.github.com/users/thiagosyncmob/following{/other_user}","gists_url":"https://api.github.com/users/thiagosyncmob/gists{/gist_id}","starred_url":"https://api.github.com/users/thiagosyncmob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thiagosyncmob/subscriptions","organizations_url":"https://api.github.com/users/thiagosyncmob/orgs","repos_url":"https://api.github.com/users/thiagosyncmob/repos","events_url":"https://api.github.com/users/thiagosyncmob/events{/privacy}","received_events_url":"https://api.github.com/users/thiagosyncmob/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jlmakes/scrollreveal.js/labels/Question","name":"Question","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-23T00:36:28Z","updated_at":"2016-07-23T11:08:25Z","closed_at":null,"body":"Hi\r\n\r\nIs it possible to disable reveal for those items that don't need scroll to be visible (considering different screen sizes)? In other words, I just want to reveal when I scroll, not at page startup.\r\n\r\nThank you"},"comment":{"url":"https://api.github.com/repos/jlmakes/scrollreveal.js/issues/comments/234712744","html_url":"https://github.com/jlmakes/scrollreveal.js/issues/276#issuecomment-234712744","issue_url":"https://api.github.com/repos/jlmakes/scrollreveal.js/issues/276","id":234712744,"user":{"login":"jlmakes","id":2044842,"avatar_url":"https://avatars.githubusercontent.com/u/2044842?v=3","gravatar_id":"","url":"https://api.github.com/users/jlmakes","html_url":"https://github.com/jlmakes","followers_url":"https://api.github.com/users/jlmakes/followers","following_url":"https://api.github.com/users/jlmakes/following{/other_user}","gists_url":"https://api.github.com/users/jlmakes/gists{/gist_id}","starred_url":"https://api.github.com/users/jlmakes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlmakes/subscriptions","organizations_url":"https://api.github.com/users/jlmakes/orgs","repos_url":"https://api.github.com/users/jlmakes/repos","events_url":"https://api.github.com/users/jlmakes/events{/privacy}","received_events_url":"https://api.github.com/users/jlmakes/received_events","type":"User","site_admin":false},"created_at":"2016-07-23T11:08:25Z","updated_at":"2016-07-23T11:08:25Z","body":"Ah, I believe I understand @thiagosyncmob\r\n\r\nFirst, by calling `sr.reveal()` with a `duration: 0`, all visible elements will be immediately visible on load.\r\n\r\nSecond, we pass an `afterReveal` callback, that calls `sr.reveal()` _again_ on the same element set — but this time with the desired reveal animation duration. This will overwrite the previous `duration: 0`, achieving the effect you’re after.\r\n\r\n### I made you a demo → [Live on JSBin](http://jsbin.com/mulokeg/edit?html,js,output)\r\n\r\n_Example:_\r\n```js\r\nsr.reveal('.box', {\r\n  duration: 0,\r\n  afterReveal: function () {\r\n    sr.reveal('.box', { duration: 500 })\r\n  }\r\n})\r\n```"}}
{"actor":{"display_login":"jlmakes"}}