{"action":"created","issue":{"url":"https://api.github.com/repos/CosmicMind/Material/issues/194","repository_url":"https://api.github.com/repos/CosmicMind/Material","labels_url":"https://api.github.com/repos/CosmicMind/Material/issues/194/labels{/name}","comments_url":"https://api.github.com/repos/CosmicMind/Material/issues/194/comments","events_url":"https://api.github.com/repos/CosmicMind/Material/issues/194/events","html_url":"https://github.com/CosmicMind/Material/issues/194","id":137182531,"number":194,"title":"How to do translation animation?","user":{"login":"kruyvanna","id":1171793,"avatar_url":"https://avatars.githubusercontent.com/u/1171793?v=3","gravatar_id":"","url":"https://api.github.com/users/kruyvanna","html_url":"https://github.com/kruyvanna","followers_url":"https://api.github.com/users/kruyvanna/followers","following_url":"https://api.github.com/users/kruyvanna/following{/other_user}","gists_url":"https://api.github.com/users/kruyvanna/gists{/gist_id}","starred_url":"https://api.github.com/users/kruyvanna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kruyvanna/subscriptions","organizations_url":"https://api.github.com/users/kruyvanna/orgs","repos_url":"https://api.github.com/users/kruyvanna/repos","events_url":"https://api.github.com/users/kruyvanna/events{/privacy}","received_events_url":"https://api.github.com/users/kruyvanna/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CosmicMind/Material/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"closed","locked":false,"assignee":{"login":"danieldahan","id":9982123,"avatar_url":"https://avatars.githubusercontent.com/u/9982123?v=3","gravatar_id":"","url":"https://api.github.com/users/danieldahan","html_url":"https://github.com/danieldahan","followers_url":"https://api.github.com/users/danieldahan/followers","following_url":"https://api.github.com/users/danieldahan/following{/other_user}","gists_url":"https://api.github.com/users/danieldahan/gists{/gist_id}","starred_url":"https://api.github.com/users/danieldahan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danieldahan/subscriptions","organizations_url":"https://api.github.com/users/danieldahan/orgs","repos_url":"https://api.github.com/users/danieldahan/repos","events_url":"https://api.github.com/users/danieldahan/events{/privacy}","received_events_url":"https://api.github.com/users/danieldahan/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2016-02-29T08:21:31Z","updated_at":"2016-03-03T12:23:15Z","closed_at":"2016-03-02T15:11:43Z","body":"Hi, I want to animate cardview in the example project\r\n\r\n\r\n\t\tlet cardView: CardView = CardView()\r\n\t\t\r\n\t\t// Title label.\r\n\t\tlet titleLabel: UILabel = UILabel()\r\n\t\ttitleLabel.text = \"Welcome Back!\"\r\n\t\ttitleLabel.textColor = MaterialColor.blue.darken1\r\n\t\ttitleLabel.font = RobotoFont.mediumWithSize(20)\r\n\t\tcardView.titleLabel = titleLabel\r\n\t\t\r\n\t\t// Detail label.\r\n\t\tlet detailLabel: UILabel = UILabel()\r\n\t\tdetailLabel.text = \"It’s been a while, have you read any new books lately?\"\r\n\t\tdetailLabel.numberOfLines = 0\r\n\t\tcardView.detailView = detailLabel\r\n\t\t\r\n\t\t// Yes button.\r\n\t\tlet btn1: FlatButton = FlatButton()\r\n\t\tbtn1.pulseColor = MaterialColor.blue.lighten1\r\n\t\tbtn1.pulseScale = false\r\n\t\tbtn1.setTitle(\"YES\", forState: .Normal)\r\n\t\tbtn1.setTitleColor(MaterialColor.blue.darken1, forState: .Normal)\r\n\t\t\r\n\t\t// No button.\r\n\t\tlet btn2: FlatButton = FlatButton()\r\n\t\tbtn2.pulseColor = MaterialColor.blue.lighten1\r\n\t\tbtn2.pulseScale = false\r\n\t\tbtn2.setTitle(\"NO\", forState: .Normal)\r\n\t\tbtn2.setTitleColor(MaterialColor.blue.darken1, forState: .Normal)\r\n\r\n\t\t// Add buttons to left side.\r\n\t\tcardView.leftButtons = [btn1, btn2]\r\n\t\t\r\n\t\t// To support orientation changes, use MaterialLayout.\r\n\t\tview.addSubview(cardView)\r\n\t\tcardView.translatesAutoresizingMaskIntoConstraints = false\r\n\t\tMaterialLayout.alignFromTop(view, child: cardView, top: 100)\r\n\t\tMaterialLayout.alignToParentHorizontally(view, child: cardView, left: 20, right: 20)\r\n        \r\n                cardView.animate(MaterialAnimation.translateY(200))\r\n\r\nThe animation code is at the end. The animation runs, but the click position doesn't reflect the new position of the view."},"comment":{"url":"https://api.github.com/repos/CosmicMind/Material/issues/comments/191733173","html_url":"https://github.com/CosmicMind/Material/issues/194#issuecomment-191733173","issue_url":"https://api.github.com/repos/CosmicMind/Material/issues/194","id":191733173,"user":{"login":"kruyvanna","id":1171793,"avatar_url":"https://avatars.githubusercontent.com/u/1171793?v=3","gravatar_id":"","url":"https://api.github.com/users/kruyvanna","html_url":"https://github.com/kruyvanna","followers_url":"https://api.github.com/users/kruyvanna/followers","following_url":"https://api.github.com/users/kruyvanna/following{/other_user}","gists_url":"https://api.github.com/users/kruyvanna/gists{/gist_id}","starred_url":"https://api.github.com/users/kruyvanna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kruyvanna/subscriptions","organizations_url":"https://api.github.com/users/kruyvanna/orgs","repos_url":"https://api.github.com/users/kruyvanna/repos","events_url":"https://api.github.com/users/kruyvanna/events{/privacy}","received_events_url":"https://api.github.com/users/kruyvanna/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T12:23:15Z","updated_at":"2016-03-03T12:23:15Z","body":"hi sorry the animation works but the touch location and button location is not at the same position"}}