Skip to content

Disable animation on specific tui component comp or for all components at once #10064

Answered by waterplea
max-put asked this question in Q&A
Discussion options

You must be logged in to vote

You can disable animation across all app by providing TUI_ANIMATIONS_SPEED as 0 or TUI_REDUCED_MOTION as true. Animations are also automatically disabled when user has reduced animations set as OS preference.

Targeting a particular element is a bit trickier, because some animations use CSS, some use Angular Animations. To disable CSS animations set --tui-duration CSS variable as 0. To disable Angular Animations provide TUI_ANIMATIONS_SPEED as 0 for that particular component.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by waterplea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants