Not sure the best way to word this, but I'm trying to replicate something similar to Tinder. A video demonstration of the UI is here: http://www.youtube.com/watch?v=cdechGTbQfY
Here's a Plunker of what I've got so far: http://plnkr.co/edit/zzb143PeO7QgnyKijFmG?p=preview
It works well enough (imagine the .next
div sitting beneath the .current
div, I just have them styled like this so I can see what's happening).
However, it's missing two things:
- When the 'current' div is removed, it should slide away through ng-animate. Currently the data completely disappears and then reappears in new positions
- (I suppose) the
.current
div needs to animate away first, then the.next
div needs to become the.current
div, then the next item in thearr
array needs to be loaded into.next
I'm not very well-versed in Angular so not sure the best way to approach this, nor can I find any similar examples online. Any ideas on how to achieve a cards-like ui for Angular?