diff --git a/src/app/core/animations.ts b/src/app/core/animations.ts index 4adc0bff..283c92f3 100644 --- a/src/app/core/animations.ts +++ b/src/app/core/animations.ts @@ -76,6 +76,53 @@ export const fuseAnimations = [ transition('0 => 1', animate('300ms ease-in')) ]), + trigger('slideIn', [ + transition('void => left', [ + style({ + transform: 'translateX(100%)' + }), + animate('300ms ease-in', + style({ + transform: 'translateX(0)' + }) + ) + ] + ), + transition('left => void', [ + style({ + transform: 'translateX(0)' + }), + animate('300ms ease-in', + style({ + transform: 'translateX(-100%)' + }) + ) + ] + ), + transition('void => right', [ + style({ + transform: 'translateX(-100%)' + }), + animate('300ms ease-in', + style({ + transform: 'translateX(0)' + }) + ) + ] + ), + transition('right => void', [ + style({ + transform: 'translateX(0)' + }), + animate('300ms ease-in', + style({ + transform: 'translateX(100%)' + }) + ) + ] + ), + ]), + trigger('slideInLeft', [ state('void', style({ transform: 'translateX(-100%)', diff --git a/src/app/core/directives/fuse-perfect-scrollbar/fuse-perfect-scrollbar.directive.ts b/src/app/core/directives/fuse-perfect-scrollbar/fuse-perfect-scrollbar.directive.ts index 2a6ead59..6d3eed11 100644 --- a/src/app/core/directives/fuse-perfect-scrollbar/fuse-perfect-scrollbar.directive.ts +++ b/src/app/core/directives/fuse-perfect-scrollbar/fuse-perfect-scrollbar.directive.ts @@ -7,7 +7,7 @@ import { Platform } from '@angular/cdk/platform'; @Directive({ selector: '[fusePerfectScrollbar]' }) -export class FusePerfectScrollbarDirective implements OnInit, AfterViewInit, OnDestroy +export class FusePerfectScrollbarDirective implements AfterViewInit, OnDestroy { onSettingsChanged: Subscription; isDisableCustomScrollbars = false; @@ -16,7 +16,7 @@ export class FusePerfectScrollbarDirective implements OnInit, AfterViewInit, OnD ps; constructor( - private element: ElementRef, + public element: ElementRef, private fuseConfig: FuseConfigService, private platform: Platform ) @@ -35,11 +35,6 @@ export class FusePerfectScrollbarDirective implements OnInit, AfterViewInit, OnD } } - ngOnInit() - { - - } - ngAfterViewInit() { if ( this.isMobile || this.isDisableCustomScrollbars )