{"action":"created","issue":{"url":"https://api.github.com/repos/johnpolacek/superscrollorama/issues/151","labels_url":"https://api.github.com/repos/johnpolacek/superscrollorama/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/johnpolacek/superscrollorama/issues/151/comments","events_url":"https://api.github.com/repos/johnpolacek/superscrollorama/issues/151/events","html_url":"https://github.com/johnpolacek/superscrollorama/issues/151","id":27120755,"number":151,"title":"controller.removeTween on onComplete doesn't work or ","user":{"login":"prBigBrother","id":3617478,"avatar_url":"https://avatars.githubusercontent.com/u/3617478?v=3","gravatar_id":"","url":"https://api.github.com/users/prBigBrother","html_url":"https://github.com/prBigBrother","followers_url":"https://api.github.com/users/prBigBrother/followers","following_url":"https://api.github.com/users/prBigBrother/following{/other_user}","gists_url":"https://api.github.com/users/prBigBrother/gists{/gist_id}","starred_url":"https://api.github.com/users/prBigBrother/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prBigBrother/subscriptions","organizations_url":"https://api.github.com/users/prBigBrother/orgs","repos_url":"https://api.github.com/users/prBigBrother/repos","events_url":"https://api.github.com/users/prBigBrother/events{/privacy}","received_events_url":"https://api.github.com/users/prBigBrother/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/johnpolacek/superscrollorama/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"janpaepke","id":3076177,"avatar_url":"https://avatars.githubusercontent.com/u/3076177?v=3","gravatar_id":"","url":"https://api.github.com/users/janpaepke","html_url":"https://github.com/janpaepke","followers_url":"https://api.github.com/users/janpaepke/followers","following_url":"https://api.github.com/users/janpaepke/following{/other_user}","gists_url":"https://api.github.com/users/janpaepke/gists{/gist_id}","starred_url":"https://api.github.com/users/janpaepke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janpaepke/subscriptions","organizations_url":"https://api.github.com/users/janpaepke/orgs","repos_url":"https://api.github.com/users/janpaepke/repos","events_url":"https://api.github.com/users/janpaepke/events{/privacy}","received_events_url":"https://api.github.com/users/janpaepke/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2014-02-07T08:49:44Z","updated_at":"2015-03-30T14:53:03Z","closed_at":null,"body":"Hi! \r\n\r\nWhy i can't remove tween, after complete animation? \r\n```\r\ncontroller.addTween($('#main-menu'),\r\n                TweenMax.from($('.home-container.weddings article.description'),\r\n                    .5,\r\n                    { \r\n                        css : {top: 600},\r\n                        onComplete: function(){\r\n                            controller.removeTween($('.home-container.weddings article.description'));\r\n                        }\r\n\r\n                    }\r\n                )\r\n            );\r\n```\r\n\r\nI't doesn't work. Can you help me? \r\n\r\nI'm need to stop reverse animation for some elements, not to all, then I use .removeTween\r\n\r\nThank you."},"comment":{"url":"https://api.github.com/repos/johnpolacek/superscrollorama/issues/comments/87710250","html_url":"https://github.com/johnpolacek/superscrollorama/issues/151#issuecomment-87710250","issue_url":"https://api.github.com/repos/johnpolacek/superscrollorama/issues/151","id":87710250,"user":{"login":"janpaepke","id":3076177,"avatar_url":"https://avatars.githubusercontent.com/u/3076177?v=3","gravatar_id":"","url":"https://api.github.com/users/janpaepke","html_url":"https://github.com/janpaepke","followers_url":"https://api.github.com/users/janpaepke/followers","following_url":"https://api.github.com/users/janpaepke/following{/other_user}","gists_url":"https://api.github.com/users/janpaepke/gists{/gist_id}","starred_url":"https://api.github.com/users/janpaepke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janpaepke/subscriptions","organizations_url":"https://api.github.com/users/janpaepke/orgs","repos_url":"https://api.github.com/users/janpaepke/repos","events_url":"https://api.github.com/users/janpaepke/events{/privacy}","received_events_url":"https://api.github.com/users/janpaepke/received_events","type":"User","site_admin":false},"created_at":"2015-03-30T14:53:03Z","updated_at":"2015-03-30T14:53:03Z","body":"Hi there,\r\n\r\nwithout any demo or console errors it's impossible to tell, but I don't think it's necesessary to do this like this.\r\nIf you are trying to run an animation only once, you can make use of the 'reverse' option like so:\r\n```js\r\ncontroller.addTween(\r\n    '.fadeSade3',\r\n    TweenMax.from(\r\n        $('.fadeSade3'),\r\n        1.5,\r\n        {left:3000}\r\n    ),\r\n    0,\r\n    -(screen.height),\r\n    true\r\n);\r\n```\r\n\r\nAlso please mind, that Superscrollorama has been superseeded by [ScrollMagic](https://github.com/janpaepke/ScrollMagic), which offers the same functionality with more features and better performance.\r\n\r\nregards,\r\nJ"}}