{"action":"created","issue":{"url":"https://api.github.com/repos/specious/cloud9carousel/issues/5","labels_url":"https://api.github.com/repos/specious/cloud9carousel/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/specious/cloud9carousel/issues/5/comments","events_url":"https://api.github.com/repos/specious/cloud9carousel/issues/5/events","html_url":"https://github.com/specious/cloud9carousel/issues/5","id":99528945,"number":5,"title":"how to destroy slider?","user":{"login":"voyik","id":8319994,"avatar_url":"https://avatars.githubusercontent.com/u/8319994?v=3","gravatar_id":"","url":"https://api.github.com/users/voyik","html_url":"https://github.com/voyik","followers_url":"https://api.github.com/users/voyik/followers","following_url":"https://api.github.com/users/voyik/following{/other_user}","gists_url":"https://api.github.com/users/voyik/gists{/gist_id}","starred_url":"https://api.github.com/users/voyik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voyik/subscriptions","organizations_url":"https://api.github.com/users/voyik/orgs","repos_url":"https://api.github.com/users/voyik/repos","events_url":"https://api.github.com/users/voyik/events{/privacy}","received_events_url":"https://api.github.com/users/voyik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-06T21:29:06Z","updated_at":"2015-10-18T21:43:57Z","closed_at":null,"body":"Hi!  How can i destroy slider and then initialize it again ?   \r\n\r\nFor example on window resize  my images change their sizes  and i want to reinitialize slider with new image sizes ..."},"comment":{"url":"https://api.github.com/repos/specious/cloud9carousel/issues/comments/149051033","html_url":"https://github.com/specious/cloud9carousel/issues/5#issuecomment-149051033","issue_url":"https://api.github.com/repos/specious/cloud9carousel/issues/5","id":149051033,"user":{"login":"specious","id":451178,"avatar_url":"https://avatars.githubusercontent.com/u/451178?v=3","gravatar_id":"","url":"https://api.github.com/users/specious","html_url":"https://github.com/specious","followers_url":"https://api.github.com/users/specious/followers","following_url":"https://api.github.com/users/specious/following{/other_user}","gists_url":"https://api.github.com/users/specious/gists{/gist_id}","starred_url":"https://api.github.com/users/specious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/specious/subscriptions","organizations_url":"https://api.github.com/users/specious/orgs","repos_url":"https://api.github.com/users/specious/repos","events_url":"https://api.github.com/users/specious/events{/privacy}","received_events_url":"https://api.github.com/users/specious/received_events","type":"User","site_admin":false},"created_at":"2015-10-18T21:43:57Z","updated_at":"2015-10-18T21:43:57Z","body":"I think you can achieve that by changing the carousel's attributes on the fly.  You can obtain a reference to the carousel object using `$(\"#carousel\").data('carousel')`.  For example,\r\n\r\n```js\r\nvar carousel = $(\"#carousel\").data('carousel');\r\ncarousel.farScale = 0.4;\r\ncarousel.render();\r\n```\r\n\r\nThis changes the scaling of the items as they become more distant, and immediately re-renders the carousel to show the new appearance.\r\n\r\nHere's a live demo: http://jsbin.com/hiwopisowe/1/edit?output"}}