I\'m using Collapse: https://ng-bootstrap.github.io/#/components/collapse
However, it does not animate; even not on the demo site. How should I implement this??
inside your component you can add something like this:
animations: [
trigger('expandCollapse', [
state('open', style({height: '100%', opacity: 1})),
state('closed', style({height: 0, opacity: 0})),
transition('* => *', [animate('100ms')])
]),
]
...
See more details here https://angular.io/guide/animations#animating-a-simple-transition