Skip to content

Make collapse transition duration dynamic #25448

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

Closed
artifex404 opened this issue Jan 26, 2018 · 2 comments
Closed

Make collapse transition duration dynamic #25448

artifex404 opened this issue Jan 26, 2018 · 2 comments

Comments

@artifex404
Copy link

artifex404 commented Jan 26, 2018

Collapse.js transition duration is taken from a constant of value of 600.

However in some cases the transition needs to be altered with CSS, for example:

.collapsing {
    transition: none;
}

This prevents the collapsing trigger to work properly as it always waits for the 600ms timeout.

The collapse.js transition duration should take its value dynamically from css.

Demo: https://codepen.io/artifex404/pen/LewydR
(Note: auto updating is disabled, rerun codepen to see changes)

@MartijnCuppens
Copy link
Member

We could use the same approach as #25218 for this

@artifex404
Copy link
Author

Agree, or at least expose the transition timing variable, so it could be modified.

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

No branches or pull requests

2 participants