Adding animation classes to popup.