I
I
IvanKalinin2015-06-16 19:48:26
Angular
IvanKalinin, 2015-06-16 19:48:26

How to add animation in AngularJS on model change?

There is some text that changes over time.
<h1>{{ ctrl.modelName.value }}</h1>
How to add animation to it? More precisely the old text fade-out, the new text fade-in?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-06-16
Protko @Fesor

write a directive, and there is magic with DOM and css transition.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question