A great avatar animation I got from the app Design Shots , an app for looking through great Design Works at Dribbble, and I implement it with swift and Objective-c. Here is the Switf demo : ).
The GIF looks not smooth enough, so you can clone it and run to get a better experience.
###GIF
###BeginAnimation
###Animating
###EndAnimation