{"action":"created","issue":{"url":"https://api.github.com/repos/juliangarnier/anime/issues/368","repository_url":"https://api.github.com/repos/juliangarnier/anime","labels_url":"https://api.github.com/repos/juliangarnier/anime/issues/368/labels{/name}","comments_url":"https://api.github.com/repos/juliangarnier/anime/issues/368/comments","events_url":"https://api.github.com/repos/juliangarnier/anime/issues/368/events","html_url":"https://github.com/juliangarnier/anime/issues/368","id":318486314,"number":368,"title":"How do I use .stop() with AnimeJS?","user":{"login":"Committing","id":7887860,"avatar_url":"https://avatars3.githubusercontent.com/u/7887860?v=4","gravatar_id":"","url":"https://api.github.com/users/Committing","html_url":"https://github.com/Committing","followers_url":"https://api.github.com/users/Committing/followers","following_url":"https://api.github.com/users/Committing/following{/other_user}","gists_url":"https://api.github.com/users/Committing/gists{/gist_id}","starred_url":"https://api.github.com/users/Committing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Committing/subscriptions","organizations_url":"https://api.github.com/users/Committing/orgs","repos_url":"https://api.github.com/users/Committing/repos","events_url":"https://api.github.com/users/Committing/events{/privacy}","received_events_url":"https://api.github.com/users/Committing/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-27T17:18:05Z","updated_at":"2018-04-28T13:15:03Z","closed_at":"2018-04-28T13:15:03Z","author_association":"NONE","body":"How do I use .stop(true) with AnimeJS?\r\n\r\nAssuming I have code:\r\n\r\n```\r\nanime({\r\n  targets: 'div',\r\n  translateX: 100,\r\n  duration: 2000,\r\n  loop: 3, // Play the animation 3 times\r\n  direction: 'reverse', // Play the animation in reverse\r\n  autoplay: false // Animation paused by default\r\n});\r\n```\r\n\r\nWould I just have to do:\r\n\r\n```\r\n$('div').stop(true);\r\n\r\nanime({\r\n  targets: 'div',\r\n  translateX: 100,\r\n  duration: 2000,\r\n  loop: 3, // Play the animation 3 times\r\n  direction: 'reverse', // Play the animation in reverse\r\n  autoplay: false // Animation paused by default\r\n});\r\n```\r\n\r\nOr is there a better way I'm supposed to do this?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/juliangarnier/anime/issues/comments/385175180","html_url":"https://github.com/juliangarnier/anime/issues/368#issuecomment-385175180","issue_url":"https://api.github.com/repos/juliangarnier/anime/issues/368","id":385175180,"user":{"login":"juliangarnier","id":1268691,"avatar_url":"https://avatars3.githubusercontent.com/u/1268691?v=4","gravatar_id":"","url":"https://api.github.com/users/juliangarnier","html_url":"https://github.com/juliangarnier","followers_url":"https://api.github.com/users/juliangarnier/followers","following_url":"https://api.github.com/users/juliangarnier/following{/other_user}","gists_url":"https://api.github.com/users/juliangarnier/gists{/gist_id}","starred_url":"https://api.github.com/users/juliangarnier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliangarnier/subscriptions","organizations_url":"https://api.github.com/users/juliangarnier/orgs","repos_url":"https://api.github.com/users/juliangarnier/repos","events_url":"https://api.github.com/users/juliangarnier/events{/privacy}","received_events_url":"https://api.github.com/users/juliangarnier/received_events","type":"User","site_admin":false},"created_at":"2018-04-28T13:15:03Z","updated_at":"2018-04-28T13:15:03Z","author_association":"OWNER","body":"Hey,\r\n\r\nYou can use `.pause() / .play()`\r\nhttp://animejs.com/documentation/#playPause\r\n\r\nor `anime.remove(theElementToRemove)`."}}
{"actor":{"display_login":"juliangarnier"}}