add spin animation to close icon in navbar