Pipe water pump animation

Don't forget this forum has a good search engine, here's a topic I responded to with an example. It might not be exactly as you need, but should be a good start.

I also recommend a peek at high performance. Your example gives me hives. Your use of color doesn't make any sense and IMO offers nothing positive for the end user.