#I237390 - disable tab animation

This note in v20.3.47 would be amazing, but I cannot find any documentation on it. 




We need a way to globally disable these animations. We cannot do this for EVERY single tab component in the system. 

How to Disable default Tab animation effects in Angular Tabs component - Syncfusion


3 Replies

RV Ravikumar Venkatesan Syncfusion Team October 4, 2022 01:07 PM UTC

Hi Dylan,


Greetings from Syncfusion support.


We have validated your query “We need a way to globally disable these animations” at our end. We regret to inform you that currently, we didn’t have support to disable the animations of all Tabs at once. So, we suggest you maintain the animation property value globally using a service and set the value to each Tab component as shown in the below code snippets.


Sample: https://stackblitz.com/edit/ej2-angular-tab-disable-animation-sample?file=components%2Ftabone.component.ts


[animation.service.ts]

import { Injectable } from '@angular/core';

 

@Injectable({

  providedIn: 'root'

})

 

export class AnimationService {

  animationRecord<stringany> = {

    previous: { effect: ""duration: 0easing: "" },

    next: { effect: ""duration: 0easing: "" }

  };

}


[tabone.component.ts]

import { AnimationService } from '../animation.service';

 

export class TabOneComponent {

  constructor(private animationServiceAnimationService) { }

}


[tabone.component.html]

<ejs-tab  [animation]="animationService.animation">

</ejs-tab>


Kindly try the shared solution and let us know if you need any further assistance.


Regards,

Ravikumar Venkatesan



DY Dylan October 19, 2022 02:20 PM UTC

Is there really no way to just send a [animation]='false' through? This is incredibly complicated and add maintenance work for something that should be a very simple toggle. Or perhaps an environment variable where this can be set?



RV Ravikumar Venkatesan Syncfusion Team October 20, 2022 04:02 PM UTC

Hi Dylan,


We regret to inform you that currently, we didn’t have the option to disable the Tab animation globally. We already have a feature request for this requirement at our end. You can find the details in the below feedback. We suggest you follow up on the below feedback for this feature.


Feedback: https://www.syncfusion.com/feedback/15797/enable-disable-animation-globally-for-ej2-components


Regards,

Ravikumar Venkatesan


Loader.
Up arrow icon