set time out for reactstrap collapse - reactjs

I'm trying to use reactstrap collapse instead of reactjs transition for sliding my div horizontally. because the height of div changes according to the content of that. so I can't use transition. now I need to set a duration for collapse animation but I couldn't find any solution. can anybody help me?

Related

Material UI React: Collapse with inverted direction

I want to animate an element when mounting so that it appears from the bottom. My project is using Material UI. MUI has a component called Collapse that seems to be for this purpose, however it only animates from the top or left, and it does not accept a property for reversing the direction. How do I get around this?

MUI TextField size growing through div transition

I'm making a sidebar for my project and I'm using div transitions to give a smooth effect on collapse. However I have Material-ui (v4.12.3) TextField inside, and during the transition of opening the div, the height of the text field changes to 496px. Adding maxHeight style doesn't prevent a limit and once you interact with the field, it returns to normal (16px). Has anyone had this interactions with transition and mui text fields before?

AntD horizontal collapse

I'm trying to make a horizontal collapse (like a sider) instead a vertical one.
I'm tried with the Layout component but no results.
Is there any way to use the Collapse or Panel component from AntD but vertically instead of horizontal?
So when I click it, it expands from left to right instead of top to bottom?
Thanks in advance.
Try using Drawer but rendered within the DOM
It's not the exact same but works nicely.
https://ant.design/components/drawer/#components-drawer-demo-render-in-current
https://codesandbox.io/s/z00q1e

React JS - Toggle drawer and resize not working together in Material UI

I'm trying to do toggle drawer and resize of it together using React JS and Material UI. The reference code is in class based component at
https://stackblitz.com/edit/react-2h1g6x?file=ResponsiveDrawer.js
I'm trying to do similarly using function based components and hooks and the codesandbox link is below:
https://codesandbox.io/s/resizeeee-ilot8?file=/src/App.js
But this is not working properly. Initially on toggle the drawer expands and on toggle again it collapses which is fine. But the issue starts when I toggle the drawer and trying to resize it. The width of the drawer changes continuously with mousemove on both outside of drawer and inside of drawer. I understood that my state is changing continuously and so mousemove. Is there any way to restrict this and let it work similarly to the class based component. Any help is much appreciated. Thanks!
Change condition on line number 97
if (!state.isResizing || !open)
just change "&&" to "||"

Is there a way to reduce the height of the accordion in codename?

I incorporated an accordion in my sidemenu as seen in the image. The Home and Logout are not in the accordion, so their height differs. I request for help on how to reduce the height of the accordion header.
I also request for help on how I can remove the border of an accordion. I tried setting the border to empty in the accordion's UIID but it didn't work.
You can reduce the padding and font of the elements in the accordion to reduce the height of the accordion. This also lets you control the border.
You can find the applicable UIIDs in the component inspector tool. Specifically UIIDs to look at would be AccordionArrow and AccordionItem.

Resources