2

There is an animation feature that exists in AngularJS 1.4 that is called Animation Anchoring.

When routing to a new route, it allows to mark an element in the source and destination page with the attribute ng-animate-ref, and performs a computed animation between the two by creating a cloned node during the transition.

See demo

Is it possible to do something similar in Angular 2+ ?

Examples I found in the documentation only deals with animation to a specific component or dom element, but nothing like this cloning feature.

Thank you

Maxime
  • 21
  • 1
  • 4

1 Answers1

0

Well I ended up creating it myself:

https://github.com/foxx9/ngx-animate-ref

Maxime
  • 21
  • 1
  • 4
  • Why answer your own question? This takes away opportunity for others to answer. Instead try to edit your question and provide an possible solution there. – Joosep Parts Feb 04 '22 at 06:01
  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - [From Review](/review/late-answers/30983873) – TriS Feb 08 '22 at 15:52