{"action":"closed","issue":{"url":"https://api.github.com/repos/PolymerElements/neon-animation/issues/20","labels_url":"https://api.github.com/repos/PolymerElements/neon-animation/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/PolymerElements/neon-animation/issues/20/comments","events_url":"https://api.github.com/repos/PolymerElements/neon-animation/issues/20/events","html_url":"https://github.com/PolymerElements/neon-animation/issues/20","id":84526192,"number":20,"title":"neon-animated-pages reverse animation?","user":{"login":"firasdib","id":1335165,"avatar_url":"https://avatars.githubusercontent.com/u/1335165?v=3","gravatar_id":"","url":"https://api.github.com/users/firasdib","html_url":"https://github.com/firasdib","followers_url":"https://api.github.com/users/firasdib/followers","following_url":"https://api.github.com/users/firasdib/following{/other_user}","gists_url":"https://api.github.com/users/firasdib/gists{/gist_id}","starred_url":"https://api.github.com/users/firasdib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/firasdib/subscriptions","organizations_url":"https://api.github.com/users/firasdib/orgs","repos_url":"https://api.github.com/users/firasdib/repos","events_url":"https://api.github.com/users/firasdib/events{/privacy}","received_events_url":"https://api.github.com/users/firasdib/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-03T12:10:23Z","updated_at":"2015-06-10T00:50:03Z","closed_at":"2015-06-10T00:50:03Z","body":"Hello,\r\n\r\nI'm using neon-animated-pages which is working fine, but the trouble is \"reversing\" the animation when the user navigates backwards in the UI.\r\n\r\nSo imagine this:\r\n\r\n````\r\n<neon-animated-pages id=\"pages\" class=\"flex fit\" selected=\"[[selectedPage]]\">\r\n  <a-page>...</a-page>\r\n  <a-page>...</a-page>\r\n</neon-animated-pages>\r\n````\r\n\r\nThe initial value of `selectedPage` is `0` which is fine, the first page is shown. The user presses a button on this page and `selectedPage` is now `1`. In my case, `slide-from-right-animation` is run and the pages move \"forward\" as you would expect. The user now presses an internal back button and the `selectedPage` variable is changed from `1` to `0` -- moving backwards. The same animation is still run however, making it look like the page is moving forward although its in reality moving backwards.\r\n\r\nI hope this makes sense, if not, I'll clarify.\r\n\r\nIs there a way to make the animation reverse when you move backwards, i.e., running `slide-from-left-animation` instead?\r\n\r\nThanks"}}