react-reveal icon indicating copy to clipboard operation
react-reveal copied to clipboard

Custom `animation-timing-function` for `<Fade />` component

Open mahaveer0496 opened this issue 4 years ago • 1 comments

Is it possible to apply custom timing function? I cant find the prop related.

mahaveer0496 avatar Oct 25 '19 16:10 mahaveer0496

There is a workaround [i don't know if it helps in your case]:

  1. you declare a state const [x, setX] =useState()
  2. at the component you add <Fade duration={x}>
  3. use the function to update X and the react with automatically rerender it

reni1111 avatar Nov 18 '19 20:11 reni1111