atomize icon indicating copy to clipboard operation
atomize copied to clipboard

Collapse animation speed

Open ValiDraganescu opened this issue 5 years ago • 11 comments

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 avatar May 24 '20 17:05 ValiDraganescu

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?

ValiDraganescu avatar May 25 '20 11:05 ValiDraganescu

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

proksh avatar Jun 30 '20 08:06 proksh

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

ValiDraganescu avatar Jun 30 '20 10:06 ValiDraganescu

Great @ValiDraganescu

proksh avatar Jun 30 '20 12:06 proksh

@proksh I would like to know if this issue has been fixed

bobbylemm avatar Jan 08 '21 11:01 bobbylemm

@bobbylemm Not yet!

LucaMoro96 avatar Jan 08 '21 13:01 LucaMoro96

@LucaMoro96 can I work on this

bobbylemm avatar Jan 08 '21 13:01 bobbylemm

@bobbylemm Sure!

LucaMoro96 avatar Jan 08 '21 13:01 LucaMoro96

Alright great

bobbylemm avatar Jan 08 '21 14:01 bobbylemm

hi @ValiDraganescu can i work on this?

manan1979 avatar Mar 23 '23 17:03 manan1979

Hi @manan1979 , this is not my repo, I see others above offering to work on this one, so maybe check with @bobbylemm

ValiDraganescu avatar Mar 23 '23 17:03 ValiDraganescu