There is indeed a corelation between the animated icon and avast activity. It tells you that avast is currently scanning files/links in the background. Of course to know this, you have to check the statistics window under ‘Realtime Data’
Its one of the aesthetic changes (earlier it was a revolving 3D icon) avast made that was pleasant to the eyes.
The icon is only showing animation if avast is scanning something.
Your assumption that there is no relation between the animating icon and avast activity is totally wrong.
What it is scanning/doing?
It can be a file from a application you are starting, it can be internet traffic etc etc.
If you want to see what was scanned/analyzed check the log files.