add animation to popup