Animated diagrams using Snap.svg