compressing a curved spring

I managed to animate the definition of a spring in an assembly. Hope you like it.
Edu ​​​​​​​ ​​​​​​​