mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 15:03:07 +00:00
44988: added reducer, angular animation, tests...
This commit is contained in:
16
src/app/shared/animations/slide.ts
Normal file
16
src/app/shared/animations/slide.ts
Normal 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)),
|
||||
]);
|
Reference in New Issue
Block a user