Tuomas Toivonen
Tuomas Toivonen

Reputation: 23492

Angular 2 animations

Is it possible to animate elements on Angular 2 like on jQuery? For example, I want div containing sub-elements to expand/shrink when clicked. Does Angular 2 provide directives for this, or do I have to call jQuery inside Angular event handlers ?

Upvotes: 0

Views: 1199

Answers (2)

Sayantan Mukherjee
Sayantan Mukherjee

Reputation: 168

Just use bootstrap accordion . Here is a link to it https://getbootstrap.com/docs/4.3/components/collapse/

Upvotes: 0

dotnet-provoke
dotnet-provoke

Reputation: 1608

Check out https://angular.io/docs/ts/latest/guide/animations.html

Remember to use the polyfills for older browsers.

Upvotes: 1

Related Questions