googlearchive / flipjs

A helper library for doing FLIP animations.
https://aerotwist.com/blog/flip-your-animations
Apache License 2.0
1.42k stars 90 forks source link

Support for Shared Element Transitions #7

Open davidkpiano opened 8 years ago

davidkpiano commented 8 years ago

Currently, flipjs supports implementing the FLIP technique for a single element that changes position due to a class change. However, a common use-case (similar to Android's Shared Element Activity Transitions) is that:

One strategy I've been using is [data-flip="foo"] on both the initial and final nodes, so that I can:

Perhaps we can supply an argument to last(...) that allows us to specify the new shared node?