Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

Is it possible to get a done event of a CSS Transition with AngularJS 1.2 angular-animate module?

What I try to do is when I have a HTML Tag

<div ng-hide="{{toggle}}">...</div>

with a CSS - Transition like

.sidebar.ng-hide-add,
.sidebar.ng-hide-remove {
  transition:0.3s ease-out all;
  display:block!important;
}

and the corresponding .ng-hide-add, .ng-hide-remove (and active classes), that I call a function when the 0.3s transition is done.

Thanks!

share|improve this question

1 Answer 1

up vote 0 down vote accepted

I stumbled upon this solution - basically it works: How do I use transitionend in jQuery?

If someone wants to add a more angular-ish solution it would be great!

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.