How to disable tab animation effects in TypeScript Ribbon control?
The JavaScript Ribbon control has default animation effects when switching between the tabs. In certain scenarios, it could be preferable to turn off the animations for a smoother look.
This article guides you on how to disable the tab animation effects in Ribbon. Refer to this link for a quick start with Ribbon control.
Using tabAnimation property
You can disable tab animation effects by setting the tabAnimation
property’s effect
property of the next
and previous
properties to None
.
import { Tab } from '@syncfusion/ej2-navigations';
...
/// initialize the Ribbon control
let ribbon: Ribbon = new Ribbon({
tabs: tabs,
tabAnimation: { previous: { effect: 'None' }, next: { effect: 'None' } }
});
ribbon.appendTo("#ribbon");
Additional References
For more information about the Syncfusion Ribbon control, you can refer to the following sections:
Conclusion
I hope you enjoyed learning about how to disable tab animation effects in TypeScript Ribbon Control.
You can refer to our JavaScript Ribbon feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our JavaScript Ribbon example to understand how to create and manipulate data.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!