Skip to content

Instantly share code, notes, and snippets.

View benjanderson's full-sized avatar
😀

Ben Anderson benjanderson

😀
View GitHub Profile
import {trigger, animate, style, group, animateChild, query, stagger, transition} from '@angular/animations';
export const routerTransition = trigger('routerTransition', [
transition('* <=> *', [
/* order */
/* 1 */ query(':enter, :leave', style({ position: 'fixed', width:'100%' })
, { optional: true }),
/* 2 */ group([ // block executes in parallel
query(':enter', [