44988: added reducer, angular animation, tests...

This commit is contained in:
Lotte Hofstede
2017-10-30 17:04:52 +01:00
parent bbe15e8e67
commit 7d5dad94a1
16 changed files with 334 additions and 80 deletions

View File

@@ -0,0 +1,16 @@
import { animate, state, transition, trigger, style } from '@angular/animations';
export const slideInOut = trigger('slideInOut', [
/*
state('expanded', style({ right: '100%' }));
state('collapsed', style({ right: 0 }));
*/
state('expanded', style({ left: '100%' })),
state('collapsed', style({ left: 0 })),
transition('expanded <=> collapsed', animate(250)),
]);