{"action":"closed","issue":{"url":"https://api.github.com/repos/juliangarnier/anime/issues/43","repository_url":"https://api.github.com/repos/juliangarnier/anime","labels_url":"https://api.github.com/repos/juliangarnier/anime/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/juliangarnier/anime/issues/43/comments","events_url":"https://api.github.com/repos/juliangarnier/anime/issues/43/events","html_url":"https://github.com/juliangarnier/anime/issues/43","id":166006943,"number":43,"title":"Library independence.","user":{"login":"trusktr","id":297678,"avatar_url":"https://avatars.githubusercontent.com/u/297678?v=3","gravatar_id":"","url":"https://api.github.com/users/trusktr","html_url":"https://github.com/trusktr","followers_url":"https://api.github.com/users/trusktr/followers","following_url":"https://api.github.com/users/trusktr/following{/other_user}","gists_url":"https://api.github.com/users/trusktr/gists{/gist_id}","starred_url":"https://api.github.com/users/trusktr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trusktr/subscriptions","organizations_url":"https://api.github.com/users/trusktr/orgs","repos_url":"https://api.github.com/users/trusktr/repos","events_url":"https://api.github.com/users/trusktr/events{/privacy}","received_events_url":"https://api.github.com/users/trusktr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-18T01:31:59Z","updated_at":"2016-08-07T15:13:42Z","closed_at":"2016-08-07T15:13:42Z","body":"Currently anime.js creates it's own animation loop with `requestAnimationFrame`, which makes it undesirable to add anime.js to an existing project that has it's own loop in which it produces it's own time stamps.\r\n\r\nFor example, suppose we have a game that makes it's own loop (with `requestAnimationFrame`, or something else in some other JS engine...). In order for anime.js to be integrated into that custom loop, it would be nice for anime.js API to accept a timestamp that was created outside of anime.js.\r\n\r\nFor a real-world example of an API that is independent in this fashion and can be placed into any existing animation/game loop, see [Tween.js](https://github.com/tweenjs/tween.js/). Note in particular the `.update()` method of the `Tween` class.\r\n\r\n---\r\n\r\nBut! it would also be nice if the anime.js API was able use `requestAnimationFrame` in cases where the developer doesn't already have their own loop. That's something both anime.js and tween.js don't do yet, which would be nice (having both forms of API for both crowds somehow)!"}}
{"actor":{"display_login":"juliangarnier"}}