Fade in/out animation

fadeInOut is an Angular animation trigger that fades an element's opacity in on enter and out on leave. Pair it with an @if block so the element is added and removed from the DOM — the trigger requires the enter/leave lifecycle to animate.

Basic usage