{"action":"created","issue":{"url":"https://api.github.com/repos/IFTTT/JazzHands/issues/1676","labels_url":"https://api.github.com/repos/IFTTT/JazzHands/issues/1676/labels{/name}","comments_url":"https://api.github.com/repos/IFTTT/JazzHands/issues/1676/comments","events_url":"https://api.github.com/repos/IFTTT/JazzHands/issues/1676/events","html_url":"https://github.com/IFTTT/JazzHands/issues/1676","id":83696764,"number":1676,"title":"Animation does not work fluent","user":{"login":"confile","id":64265,"avatar_url":"https://avatars.githubusercontent.com/u/64265?v=3","gravatar_id":"","url":"https://api.github.com/users/confile","html_url":"https://github.com/confile","followers_url":"https://api.github.com/users/confile/followers","following_url":"https://api.github.com/users/confile/following{/other_user}","gists_url":"https://api.github.com/users/confile/gists{/gist_id}","starred_url":"https://api.github.com/users/confile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/confile/subscriptions","organizations_url":"https://api.github.com/users/confile/orgs","repos_url":"https://api.github.com/users/confile/repos","events_url":"https://api.github.com/users/confile/events{/privacy}","received_events_url":"https://api.github.com/users/confile/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-06-01T21:15:09Z","updated_at":"2015-06-23T12:21:09Z","closed_at":"2015-06-22T17:55:24Z","body":"I tried the following animation: \r\n\r\nFirst I created a view: \r\n\r\n```\r\n    self.phoneScreen = UIImageView(image: UIImage(named: \"screenBlank\")!)\r\n    self.phoneScreen?.frame = CGRectMake(0, 0, self.phoneScreen!.frame.width/2, self.phoneScreen!.frame.height/2)\r\n    self.phoneScreen?.center = self.view.center\r\n    self.scrollView.addSubview(self.phoneScreen!)\r\n```\r\n\r\nThen I created the animation: \r\n```\r\nlet phoneScreenAnimation: IFTTTFrameAnimation = IFTTTFrameAnimation(view: self.phoneScreen!)\r\n    self.animator.addAnimation(phoneScreenAnimation)\r\n    \r\n    phoneScreenAnimation.addKeyFrame(IFTTTAnimationKeyFrame(time: timeForPage(1), andFrame: self.phoneScreen!.frame))\r\n    phoneScreenAnimation.addKeyFrame(IFTTTAnimationKeyFrame(time: timeForPage(2), andFrame: CGRectOffset(self.phoneScreen!.frame, self.view.frame.size.width, 0)))\r\n```\r\nThe function ``timeForPage`` is based on your example. \r\n\r\nHere is the problem. The animation is running correctly from page 1 to page 2. The problem is that is not very smooth. It shakes a bit, or lets say it vibrates a bit while running. The shaking is around the x axis while the translation is running. It looks like there is a lot of computation and that the rendering of the view could not handle painting that fast. Is there something wrong with my code or is there a better way to move a view from page 1 to page 2?\r\n\r\n\r\n \r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/IFTTT/JazzHands/issues/comments/114472232","html_url":"https://github.com/IFTTT/JazzHands/issues/1676#issuecomment-114472232","issue_url":"https://api.github.com/repos/IFTTT/JazzHands/issues/1676","id":114472232,"user":{"login":"confile","id":64265,"avatar_url":"https://avatars.githubusercontent.com/u/64265?v=3","gravatar_id":"","url":"https://api.github.com/users/confile","html_url":"https://github.com/confile","followers_url":"https://api.github.com/users/confile/followers","following_url":"https://api.github.com/users/confile/following{/other_user}","gists_url":"https://api.github.com/users/confile/gists{/gist_id}","starred_url":"https://api.github.com/users/confile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/confile/subscriptions","organizations_url":"https://api.github.com/users/confile/orgs","repos_url":"https://api.github.com/users/confile/repos","events_url":"https://api.github.com/users/confile/events{/privacy}","received_events_url":"https://api.github.com/users/confile/received_events","type":"User","site_admin":false},"created_at":"2015-06-23T12:21:09Z","updated_at":"2015-06-23T12:21:09Z","body":"@lauraskelton Works great."}}