transition-hook icon indicating copy to clipboard operation
transition-hook copied to clipboard

☄️ An extremely light-weight react transition animation hook which is simpler and easier to use than react-transition-group

Results 11 transition-hook issues
Sort by recently updated
recently updated
newest added

如果像这样使用`useListTransition(list, **300)` `const keyRef = useRef(0); // change list to our list form with extra information. const initialList: Array = list.map((item, key) => ({ item, key: keyRef.current, stage: 'enter', }));`...

bug

npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found: [email protected] npm ERR! node_modules/react npm ERR! react@"^18.0.0" from...

Hi and thanks for this lib! I have a question, where would I look in order to support using a certain `key` on the state that, when changed should trigger...

Tested operability with react 18. You need to update the list of dependencies in package.json

If you have a transition like this: ```js const [phase, setPhase] = useState(1) const transition = useSwitchTransition(phase, 300, 'out-in'); ``` and you quickly cycle form 1 -> 2 -> 1:...

First of all, love this. Do you think is there a way to support callbacks (aka call `done()`) instead of using a timeout in ms? I'm thinking it used with...

### How to clear children style On anmiated after ! ``` { transition((_, stage: Stage) => ( ))} ```

Hi all, I am in a SPFx-Project with TypeScript-Version 4.5.5 I can only use React-Version 16.13.1 as the highest version, because of [SPFx-Compatibility](https://learn.microsoft.com/de-de/sharepoint/dev/spfx/compatibility) "transition-hook": "^1.5.2" "@types/react": "^18.0.23", "@types/react-dom": "^18.0.7", "react":...

react 18.2 只有enter到leave的动画 没有from到enter的动画 新手望指点 ```import { useState } from "react"; import { Button } from "antd"; import { useSwitchTransition } from "transition-hook"; export default function Test() { const [count,...