{"action":"created","issue":{"url":"https://api.github.com/repos/adchsm/Slidebars/issues/66","labels_url":"https://api.github.com/repos/adchsm/Slidebars/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/adchsm/Slidebars/issues/66/comments","events_url":"https://api.github.com/repos/adchsm/Slidebars/issues/66/events","html_url":"https://github.com/adchsm/Slidebars/issues/66","id":33009324,"number":66,"title":"Add Callback option","user":{"login":"jmartsch","id":551551,"avatar_url":"https://avatars.githubusercontent.com/u/551551?v=3","gravatar_id":"","url":"https://api.github.com/users/jmartsch","html_url":"https://github.com/jmartsch","followers_url":"https://api.github.com/users/jmartsch/followers","following_url":"https://api.github.com/users/jmartsch/following{/other_user}","gists_url":"https://api.github.com/users/jmartsch/gists{/gist_id}","starred_url":"https://api.github.com/users/jmartsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmartsch/subscriptions","organizations_url":"https://api.github.com/users/jmartsch/orgs","repos_url":"https://api.github.com/users/jmartsch/repos","events_url":"https://api.github.com/users/jmartsch/events{/privacy}","received_events_url":"https://api.github.com/users/jmartsch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-05-07T18:02:26Z","updated_at":"2015-03-31T08:30:31Z","closed_at":null,"body":"Please add an option for a callbacks. I have a one-page website with smooth scrolling.\r\nWhen i click a link in slidebar the slidebar closes but simultaneous scrolls down. I want to close the slidebar first, and then do the scrolling. Could be easy:\r\n```\r\nmySlidebars.close(function(){\r\n// do this\r\n});\r\n```\r\nPlease also add an option for callbacks on slidebar.open()"},"comment":{"url":"https://api.github.com/repos/adchsm/Slidebars/issues/comments/87994169","html_url":"https://github.com/adchsm/Slidebars/issues/66#issuecomment-87994169","issue_url":"https://api.github.com/repos/adchsm/Slidebars/issues/66","id":87994169,"user":{"login":"adchsm","id":5276939,"avatar_url":"https://avatars.githubusercontent.com/u/5276939?v=3","gravatar_id":"","url":"https://api.github.com/users/adchsm","html_url":"https://github.com/adchsm","followers_url":"https://api.github.com/users/adchsm/followers","following_url":"https://api.github.com/users/adchsm/following{/other_user}","gists_url":"https://api.github.com/users/adchsm/gists{/gist_id}","starred_url":"https://api.github.com/users/adchsm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adchsm/subscriptions","organizations_url":"https://api.github.com/users/adchsm/orgs","repos_url":"https://api.github.com/users/adchsm/repos","events_url":"https://api.github.com/users/adchsm/events{/privacy}","received_events_url":"https://api.github.com/users/adchsm/received_events","type":"User","site_admin":false},"created_at":"2015-03-31T08:30:31Z","updated_at":"2015-03-31T08:30:31Z","body":"The `html` element has class `sb-active` when any Slidebar is open, so if your animating through css only, you could hook into that.\r\n\r\n```css\r\n.your-icon {\r\n}\r\n\r\nhtml.sb-active .your-icon {\r\n}\r\n```"}}