react-transition-group

page transitions without React-Router

安稳与你 提交于 2021-02-18 11:14:10
问题 This should be so simple, but I've been breaking my head over this for days. I'm trying to animate my page transitions. The problem is the docs SUCK. I've followed them over and over and tried every which way, but can't get it to work. What I want to do is slide my pages gracefully either right or left, and fade the one that is unmounting gracefully out behind it . Simple right? I am NOT using React Router for my pages. I've tried a variety of solutions for this, but the problem seems to be

React TransitionGroup - Detecting and cancelling a transition that is in progress

孤人 提交于 2021-02-11 15:08:55
问题 My app has multiple pages labelled 'Red', 'Green', 'Blue' and 'Pink'. To allow the user to navigate between the pages, I use React Router (v5.2.0). The routes are wrapped in a TransitionGroup (v4.4.1) so that when the user navigates to a new page, a fade-in transition effect is applied to the page that makes it slowly fade into view. The duration of this transition is 5000ms. **Problem** The app initialises on page 'Red'. Say the user clicks on page 'Blue' and then on page 'Pink' while Blue's

React TransitionGroup - Detecting and cancelling a transition that is in progress

纵然是瞬间 提交于 2021-02-11 15:03:33
问题 My app has multiple pages labelled 'Red', 'Green', 'Blue' and 'Pink'. To allow the user to navigate between the pages, I use React Router (v5.2.0). The routes are wrapped in a TransitionGroup (v4.4.1) so that when the user navigates to a new page, a fade-in transition effect is applied to the page that makes it slowly fade into view. The duration of this transition is 5000ms. **Problem** The app initialises on page 'Red'. Say the user clicks on page 'Blue' and then on page 'Pink' while Blue's

Using React, findDOMNode is deprecated in StrictMode is thrown as a warning when using react-transition-group

ぃ、小莉子 提交于 2020-12-10 10:33:11
问题 I'm using the package react-transition-group, I have tried using the nodeRef props on the CSSTransition component, and added a wrapper on my component but I still get the warning regarding findDOMNode. Here's the code: <CSSTransition key={entry.id} timeout={500} classNames="timesheet-entry" > <TimesheetEntry taskOptions={taskOptions || []} deleteHandler={(event) => { deleteHandler(event, entry.id.toString()); }} data={entry} dateChangeHandler={(date: Date) => dateChangeHandler(date, entry.id)

How to use a different delay for each item with React transition group?

限于喜欢 提交于 2020-07-08 22:13:13
问题 I am animating the entry and exit of an array of items using TransitionGroup and CSSTransition (with a fade effect). I would like the items to appear with a slight delay between them instead of all at the same time. Note that the delay can be lower than the duration of the animation. With my current code, all the items are fading-in at the same time (as expected). In my render function, I have the following to animate the entry and exit of my components: <TransitionGroup> items.map((item

How to use a different delay for each item with React transition group?

帅比萌擦擦* 提交于 2020-07-08 22:05:56
问题 I am animating the entry and exit of an array of items using TransitionGroup and CSSTransition (with a fade effect). I would like the items to appear with a slight delay between them instead of all at the same time. Note that the delay can be lower than the duration of the animation. With my current code, all the items are fading-in at the same time (as expected). In my render function, I have the following to animate the entry and exit of my components: <TransitionGroup> items.map((item

How to use a different delay for each item with React transition group?

半腔热情 提交于 2020-07-08 22:05:51
问题 I am animating the entry and exit of an array of items using TransitionGroup and CSSTransition (with a fade effect). I would like the items to appear with a slight delay between them instead of all at the same time. Note that the delay can be lower than the duration of the animation. With my current code, all the items are fading-in at the same time (as expected). In my render function, I have the following to animate the entry and exit of my components: <TransitionGroup> items.map((item

How to use a different delay for each item with React transition group?

偶尔善良 提交于 2020-07-08 22:05:15
问题 I am animating the entry and exit of an array of items using TransitionGroup and CSSTransition (with a fade effect). I would like the items to appear with a slight delay between them instead of all at the same time. Note that the delay can be lower than the duration of the animation. With my current code, all the items are fading-in at the same time (as expected). In my render function, I have the following to animate the entry and exit of my components: <TransitionGroup> items.map((item

react transition group appear transitions not working properly

纵然是瞬间 提交于 2020-06-16 05:10:06
问题 I'm using react transition group to handle animated CSSTransitions when a component is rendered. I want a simple fade in of a component. The transition out seems to work properly, but the in transition does not. If I put a debugger on the onEnter property, I can see that the transition actually "should" work as expected. The enter-active state is triggered, the element starts at 0.1 opacity, and if I resume the debugger, the transition takes place. But without the debugger, when the component