react-transition-group icon indicating copy to clipboard operation
react-transition-group copied to clipboard

storybook transition not work

Open xianwei-lu opened this issue 6 years ago • 13 comments

What is the current behavior? when I test the examples in storybook, I find there is not transition time. demo

What is the expected behavior? https://reactcommunity.org/react-transition-group/transition-group should like this demo1

xianwei-lu avatar Jul 30 '19 10:07 xianwei-lu

Is this project even maintained anymore?

IronSean avatar Apr 01 '20 21:04 IronSean

@IronSean yes. It was fixed. @silvenon this can be closed.

unrevised6419 avatar May 05 '20 19:05 unrevised6419

@xianwei-lu How did you manage to get storybook to run a component that is using TransitionGroup? Since the component imports a local CSS file, Storybook will throw an error "Module not found: Error: Can't resolve 'styles.css'". I tried every possible solution in the docs and on SO, nothing. Storybook hangs when I extend the webpack config, again nothing ..

KresimirJurkovic avatar Mar 26 '21 06:03 KresimirJurkovic

Can someone tell me, How this issue resolved...? Pls. help

rajmcablr avatar Feb 20 '22 07:02 rajmcablr

Transition is not working when used with Storybook for React. We are using react-transition-group with 4.4.2 version and Storybook-react with 6.4. We are getting the below error on running gulp serve.

MicrosoftTeams-image (3)

Can someone tell us how to resolve this issue. Please help..

RamyaMapakshi avatar Feb 20 '22 07:02 RamyaMapakshi

@IronSean yes. It was fixed. @silvenon this can be closed.

@IronSean - Can you pls. share the information....? How its fixed..?

rajmcablr avatar Feb 20 '22 07:02 rajmcablr

@xianwei-lu How did you manage to get storybook to run a component that is using TransitionGroup? Since the component imports a local CSS file, Storybook will throw an error "Module not found: Error: Can't resolve 'styles.css'". I tried every possible solution in the docs and on SO, nothing. Storybook hangs when I extend the webpack config, again nothing ..

@KresimirJurkovic any update on this issue ?

RamyaMapakshi avatar Feb 20 '22 09:02 RamyaMapakshi

My bad, I thought that the comment claiming that the issue has been fixed was the author's.

silvenon avatar Feb 20 '22 19:02 silvenon

I fixed it, I am looking at the sliding effect in storybook, but need to find the piece of code that did it, will get back at you asap EDIT: There were no additional configurations for storybook, maybe the difference is in that I am importing a CSS file in my Slider component with slide in enter and exit classes, like so : image image And then, I import the component in a storybook: image Sliding is working when browsing with storybook

kjurkovicafinitos avatar Feb 21 '22 08:02 kjurkovicafinitos

I fixed it, I am looking at the sliding effect in storybook, but need to find the piece of code that did it, will get back at you asap EDIT: There were no additional configurations for storybook, maybe the difference is in that I am importing a CSS file in my Slider component with slide in enter and exit classes, like so : image image And then, I import the component in a storybook: image Sliding is working when browsing with storybook

Thanks for the immediate reply @KresimirJurkovic .

I assume you have created Slider Component by using react-transition-group. Then it was used in the storyBook component.

But in our case, we are referencing StoryBook in the Slider Component. Can you please help how we can use for this case? Any pointers would be great help.

RamyaMapakshi avatar Feb 21 '22 14:02 RamyaMapakshi

Oh man, sorry, but at the moment, I have no idea on how to do that :-/

kjurkovicafinitos avatar Feb 21 '22 14:02 kjurkovicafinitos

Can someone create a minimal repo that I can try out? So that we all agree on what the exact problem is, because I'm not sure I get it. Thanks!

silvenon avatar Feb 21 '22 20:02 silvenon

Sure. I will setup soon and revert soon

rajmcablr avatar Feb 24 '22 15:02 rajmcablr