implementation for animation for coin