angular animate width change code example
Example: angular animation scale width and height
export const zoomHover = trigger('zoomHover', [
state('begin', style({transform: 'scale(1)'})),
state('end', style({transform: 'scale(1.05)'})),
transition('begin => end', [
animate(200)
]),
transition('end => begin', [
animate(200)
]),
]);