assign an animated image to contacts
It simply doesn't seem possible. On Android, pictures are shown in ImageView components, and this component does not support displaying gifs. On most Android versions, you can't do it. Maybe a custom Contacts app can have the capability.