Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tree: Provide ability to disable expand/collapse animation #3784

Closed
brsanthu opened this issue Sep 26, 2022 · 3 comments
Closed

Tree: Provide ability to disable expand/collapse animation #3784

brsanthu opened this issue Sep 26, 2022 · 3 comments
Labels
feature request New feature or request

Comments

@brsanthu
Copy link

This function solves the problem (这个功能解决的问题)

As of now, the expand and collapse happens fairly quickly but still not instant due to some animation transition. Please provide a prop to disable this animation so make expand/collapse instant.

Expected API (期望的 API)

transition-delay?: number

With this, we can set the transition-delay = 0 to disable animation

@github-actions github-actions bot added the feature request New feature or request label Sep 26, 2022
@07akioni
Copy link
Collaborator

We will add it.

@brsanthu
Copy link
Author

brsanthu commented Oct 3, 2022

@07akioni thank you for adding this prop. Does it make sense to read transition-delay from a var and default it to 0.3s (as its the current value) so that users can change that to any value and it will be automatically taken effect in all other places?

@07akioni
Copy link
Collaborator

07akioni commented Oct 4, 2022

@07akioni thank you for adding this prop. Does it make sense to read transition-delay from a var and default it to 0.3s (as its the current value) so that users can change that to any value and it will be automatically taken effect in all other places?

Implementation would be different that way. Currently transition is not added as theme variable so it would be tearing to make it customizable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants