I am aiming to achieve two separate scrolling div
s and I'm uncertain about the exact approach. Experimenting with various overflow properties has only resulted in one scrolling independently.
.profile {
width: 100%;
display: flex;
}
.user-posts {
overflow: hidden;
width: 80%;
}
.related-artists {
margin-top: 20px;
width: 20%;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.1.0/react.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.1.0/react-dom.min.js"></script>
<div className="profile">
<div className="user-posts">
<ReactCSSTransitionGroup transitionName="slide" transitionEnterTimeout={300} transitionLeaveTimeout={300} transitionAppear={true} transitionAppearTimeout={500}>
{userPosts}
</ReactCSSTransitionGroup>
</div>
<div className="related-artists">{relatedArtists}</div>
</div>