Seems like I fixed it. The javascript was wrong ( I needed to add first the class ). Then I added proper CSS to make it work.
On Wednesday, February 19, 2014 4:10:36 PM UTC+1, Jesus Rodriguez wrote: > > Hello, I have a factory which generates new directives and appends them to > the body. It works so far, so good, but adding animation is a no-go for me. > > I created a simple plunker ( > http://plnkr.co/edit/wwAgRn15k0DycMrr4tdU?p=preview). > > My idea is that $animation.enter would append an element inside another > one and make it "fade in" good, you know, the typical entering animation > from nothing to opacity 1. > > The problem I have is that I don't really know if my javascript is ok (I > am seen both adding a class in the callback and also outside) or the CSS I > was trying wasn't good. I get confused to when to use .ng-enter, when > not... I read some links, but no clue. > > I hope someone can fill the CSS gap in the plunker or also fix the > javascript if it is wrong. Then I will apply that knowledge to the real > deal. > > Thank you. > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
