Open subdigital opened 3 years ago
originally written by Alan on 04/15/2015 07:02:21
Hi Ben, How would you animate the transition such that the image and labels from the top collection cell animate into place on the header ? Essentially the appearance of 'reparenting' those data views from the cell to the header.
originally written by Alex on 04/15/2015 11:17:01
Hey Ben, quick suggestion for a future video: since you're already working with UICollectionView, I'd be interested to see an implementation of adding dividers between each row in your view (something similar to what you get with a standard UITableView).
originally written by subdigital on 04/15/2015 13:08:29
That's a really good question. Since we still have a cell with the same content (just scrolled off screen) I think this would be a misleading animation (albeit quite cool). I think the implementation would look something like:
- hide the labels on the title view (or fade them out, since they have old content)
- create identical temporary labels & position exactly where the cell is
- during the animation, use frame interpolation to put them in the new spot
- get rid of the temporary labels and show the title view labels with no animation
Also I think this approach would be broken for the cells that are at the bottom of the list, because we can't scroll any farther, so I think it would look weird.
originally written by subdigital on 04/15/2015 13:09:36
Thanks for the suggestion.
originally written by Alan on 04/20/2015 12:24:19
I hadn't considered the bottom cells. :-)
So the temporary labels would have to be "owned" by the top level view in order to appear above both the collection view cell *and* the header, right ?
Written on 01/11/2018 10:49:49
URL: https://nsscreencast.com/episodes/164-road-trip-dj-part-9