S
S
Sergey Alekseev2018-06-02 10:27:25
React
Sergey Alekseev, 2018-06-02 10:27:25

React how to make slideDown animation correct?

Customizing dropdown animation with ReactCSSTransitionGroup. That is, when you click on an element, a list appears.

<ReactCSSTransitionGroup
                        transitionName="anim"
                        transitionAppear={true}
                        transitionAppearTimeout={1000}
                        transitionEnter={false}
                        transitionLeave={false}
                    >
                        { this.props.shows[this.props.projectId] ?

                            <div className="projli__content">
                                <div className="projli__content-collapse collapse show" id="mpCollapse1">
                                    <div className="clearfix">
                                        <div className="projli__content-in">

                                            <ListSequenceContainer  projectId={this.props.projectId} />

                                        </div>
                                    </div>
                                </div>
                                <div className="projli__footer">
                                    <div className="projli__nav">
                                        <button className="btn btn-sm btn-indigo" onClick={this.showTypeAsset}>
                                            + asset
                                        </button>
                                    </div>
                                </div>
                            </div>

                        : ""}
                    </ReactCSSTransitionGroup>

But there is a problem because the list items have another drop down list. Question: how to make the animation work only for the top list?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question