animation for tap state on mobile