react-aria-menubutton icon indicating copy to clipboard operation
react-aria-menubutton copied to clipboard

Show the menu with a fade transition ?

Open baptisteArno opened this issue 5 years ago • 1 comments

I tried using CSSTransitionGroup like so:

<CSSTransitionGroup
        transitionName="test"
        transitionEnterTimeout={500}
        transitionLeaveTimeout={300}
>
    <Menu className="MyMenuButton-menu">
        <ul>{musicMenuItems}</ul>
    </Menu>
</CSSTransitionGroup>

test class definitions:

.test-enter {
  opacity: 0.01;
}

.test-enter.test-enter-active {
  opacity: 1;
  transition: opacity 500ms ease-in;
}

.test-leave {
  opacity: 1;
}

.test-leave.test-leave-active {
  opacity: 0.01;
  transition: opacity 300ms ease-in;
}

This doesn't work. Any idea how to show the menu with a fade animation?

baptisteArno avatar Dec 27 '19 12:12 baptisteArno

Is it possible to host the example in codepen or somewhere else ? I have seen people using CSS only to animate the menu, need to check whats wrong in this case. Thanks.

shirshendubhowmick avatar Feb 09 '20 13:02 shirshendubhowmick