This is a simple example showing how you can easily animate a gradient to mimic a flow
Other examples of animated gradients can be found here:
- A stretched Chord diagram showing the flow from Education to Occupation
- Minard's famous plot of Napoleon's campaign to and from Moscow
Note that Safari cannot handle the spreadMethod reflect, thus the gradient looks a bit weird in Safari. Try looking at this in Chrome or Firefox