The fanning serves two purposes, one to aerate the eggs and prevent fungal spores settling on the eggs and being able to grow, and once the eggs are due for hatching the tail waving often becomes more violent as the female helps the offspring disperese in the water.
Just as well not all fish/ shrimp and snails need this brackish water to complete their lifecyle but, it is still interesting and a good chanllenge.