Ramjet
Transform DOM elements into each another with smooth transitions
ramjet
helps us to Morph DOM elements from one state to another with smooth transitions!
All it does is:
Clone the elements and all their children.
Transform the second element so that it completely overlaps with the first.
Animating the two elements together until the first element has exactly the same position and dimensions as the second element.
install it: npm install --save ramjet
sample usage:
1 2 3 4 5 6 |
|
GIF FTW
Thanks to Rich Harris for ramjet
(: