I'm having issues when using animate.css classes with UI-Bootstrap windowClass option.
for example:
vm.open = function() {
var modalInstance = $uibModal.open({
templateUrl: 'myModalContent.html',
controller: 'ModalInstanceCtrl',
controllerAs: 'vm',
windowClass: 'animated zoomIn', // Issue is over here.
resolve: {
items: function() {
return vm.items;
}
}
});
Everything looks great when the modal open, But there is a delay when the modal is closed. the backdrop op ui-bootstrap is removed immediately from the DOM, but there is a delay removing the window and body class.
I made a code-pen to illustrate what I mean. The first button is the normal modal with no screen classes (Work 100%), the other two 'animated' buttons is where I make use of animate.css classes.
http://codepen.io/DickSwart/pen/XjbkYw
If you inspect the code you will see the delay or if you close one of the animated modals and immediately try to click another button, nothing happens.