i have a simple animation trigger which fades the element in and out.
trigger('fadeInOut', [
transition(':enter', [
style({ opacity: 0 }),
animate('0.1s ease-in-out')
]),
transition(':leave', [animate('0.1s ease-in-out', style({ opacity: 0 }))])
])
is there a way I can "configure" this animation from the template on the fly like
<div [@fadeInOut]="2"></div>
<div [@fadeInOut]="'0.5s'"></div>
The thing I would like to achieve is to pass a set of coordinates, e.g. the offsetX and Y from a mouse click event and animate an element (which is not in the dom yet) to that position.