The Wayback Machine - https://web.archive.org/web/20201030074048/https://github.com/proksh/atomize/issues/32
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

Collapse animation speed #32

Open
ValiDraganescu opened this issue May 24, 2020 · 4 comments
Open

Collapse animation speed #32

ValiDraganescu opened this issue May 24, 2020 · 4 comments

Comments

@ValiDraganescu
Copy link

@ValiDraganescu ValiDraganescu commented May 24, 2020

Hi, I am using atomize for a toy project. I noticed that the collapse atom is not very snappy in it's animation, I'd like to speed up the animation. How to do this? Thank you!

@ValiDraganescu
Copy link
Author

@ValiDraganescu ValiDraganescu commented May 25, 2020

In Collapse.js I see

render() {
    const { defaultHeight } = this.state;
    const { p, children, isOpen, ...rest } = this.props;

    /**
     * Duration for the transition
     */
    const duration = 400;
...

This means the duration is hardcoded?

@proksh
Copy link
Owner

@proksh proksh commented Jun 30, 2020

Yes @ValiDraganescu, It is hardcoded right now. I will soon update it in the next version, for custom transitions.

@ValiDraganescu
Copy link
Author

@ValiDraganescu ValiDraganescu commented Jun 30, 2020

I ended up copying Collapse.js and modifying per my needs, it works for now

@proksh
Copy link
Owner

@proksh proksh commented Jun 30, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.