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:
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
https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js