{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/AsyncDisplayKit/issues/2557","repository_url":"https://api.github.com/repos/facebook/AsyncDisplayKit","labels_url":"https://api.github.com/repos/facebook/AsyncDisplayKit/issues/2557/labels{/name}","comments_url":"https://api.github.com/repos/facebook/AsyncDisplayKit/issues/2557/comments","events_url":"https://api.github.com/repos/facebook/AsyncDisplayKit/issues/2557/events","html_url":"https://github.com/facebook/AsyncDisplayKit/issues/2557","id":187541641,"number":2557,"title":"[ASNetworkImageNode] Placeholder does not fade out for network images","user":{"login":"kimshako","id":1745342,"avatar_url":"https://avatars.githubusercontent.com/u/1745342?v=3","gravatar_id":"","url":"https://api.github.com/users/kimshako","html_url":"https://github.com/kimshako","followers_url":"https://api.github.com/users/kimshako/followers","following_url":"https://api.github.com/users/kimshako/following{/other_user}","gists_url":"https://api.github.com/users/kimshako/gists{/gist_id}","starred_url":"https://api.github.com/users/kimshako/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kimshako/subscriptions","organizations_url":"https://api.github.com/users/kimshako/orgs","repos_url":"https://api.github.com/users/kimshako/repos","events_url":"https://api.github.com/users/kimshako/events{/privacy}","received_events_url":"https://api.github.com/users/kimshako/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/facebook/AsyncDisplayKit/milestones/7","html_url":"https://github.com/facebook/AsyncDisplayKit/milestones/2.0.0","labels_url":"https://api.github.com/repos/facebook/AsyncDisplayKit/milestones/7/labels","id":1164099,"number":7,"title":"2.0.0","description":"","creator":{"login":"appleguy","id":565251,"avatar_url":"https://avatars.githubusercontent.com/u/565251?v=3","gravatar_id":"","url":"https://api.github.com/users/appleguy","html_url":"https://github.com/appleguy","followers_url":"https://api.github.com/users/appleguy/followers","following_url":"https://api.github.com/users/appleguy/following{/other_user}","gists_url":"https://api.github.com/users/appleguy/gists{/gist_id}","starred_url":"https://api.github.com/users/appleguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appleguy/subscriptions","organizations_url":"https://api.github.com/users/appleguy/orgs","repos_url":"https://api.github.com/users/appleguy/repos","events_url":"https://api.github.com/users/appleguy/events{/privacy}","received_events_url":"https://api.github.com/users/appleguy/received_events","type":"User","site_admin":false},"open_issues":41,"closed_issues":125,"state":"open","created_at":"2015-06-15T00:41:47Z","updated_at":"2016-11-17T09:41:20Z","due_on":"2016-11-30T00:00:00Z","closed_at":null},"comments":2,"created_at":"2016-11-06T04:38:35Z","updated_at":"2016-11-17T12:33:58Z","closed_at":null,"body":"Talked with @appleguy with this issue on slack on Nov 5.\r\n\r\n## Reproduce\r\n- examples_extra/Placeholders [diff.txt](https://github.com/facebook/AsyncDisplayKit/files/573641/diff.txt)\r\n- Changed `ASImageNode` -> `ASNetworkImageNode`\r\n- Loaded network image\r\n- Removed ForwardWorkaround in `SlowpokeImageNode`\r\n\r\n## Expected\r\nPlaceholder image fade out with `placeholderFadeDuration` and `placeholderFadeEnabled` set.\r\n\r\n## Current\r\n- This issue is not occurring 100% time. Refer to the gif image below: first attempt show animation properly, other attempt does not.\r\n- with ForwardWorkaround and for duration over 0.1s, the issue is not occurring.\r\n\r\n![bug](https://cloud.githubusercontent.com/assets/1745342/20035401/ae36bd4e-a3b0-11e6-8977-2a9df0839029.gif)\r\n\r\n## Affected Version (checked)\r\n- 1.9.81\r\n- 1.9.90\r\n- 1.9.92\r\n- 2.0-beta.1"},"comment":{"url":"https://api.github.com/repos/facebook/AsyncDisplayKit/issues/comments/261235793","html_url":"https://github.com/facebook/AsyncDisplayKit/issues/2557#issuecomment-261235793","issue_url":"https://api.github.com/repos/facebook/AsyncDisplayKit/issues/2557","id":261235793,"user":{"login":"EviluS","id":749280,"avatar_url":"https://avatars.githubusercontent.com/u/749280?v=3","gravatar_id":"","url":"https://api.github.com/users/EviluS","html_url":"https://github.com/EviluS","followers_url":"https://api.github.com/users/EviluS/followers","following_url":"https://api.github.com/users/EviluS/following{/other_user}","gists_url":"https://api.github.com/users/EviluS/gists{/gist_id}","starred_url":"https://api.github.com/users/EviluS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EviluS/subscriptions","organizations_url":"https://api.github.com/users/EviluS/orgs","repos_url":"https://api.github.com/users/EviluS/repos","events_url":"https://api.github.com/users/EviluS/events{/privacy}","received_events_url":"https://api.github.com/users/EviluS/received_events","type":"User","site_admin":false},"created_at":"2016-11-17T12:33:58Z","updated_at":"2016-11-17T12:33:58Z","body":"@kimshako A quick workaround is to adopt the `ASNetworkImageNodeDelegate` and implement the `imageNode:didLoad:` method  where you can add a CATransition to the node layer.\r\n\r\n`CATransition *transition = [CATransition animation];`\r\n`[transition setDuration:0.25];`\r\n`[transition setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]];`\r\n`[transition setType:kCATransitionFade];`\r\n`[[self layer] addAnimation:transition forKey:@\"AsyncImageNodeDisplayTransition\"];`"}}
{"actor":{"display_login":"EviluS"}}