pixijs / pixi-react

Write PIXI apps using React declarative style
https://pixijs.io/pixi-react/
MIT License
2.42k stars 180 forks source link

Is it possible to use react-spring to animate filter values #437

Open michael-motornyi opened 1 year ago

michael-motornyi commented 1 year ago

Description

I want to animate filter values with react-spring.

const MyFilter = withFilters({ someFilter: SomeFilter });

const animatedValues = useSpring({
  from: { filterValue: 0 }, 
  to: { filterValue: 0 }, 
});

<Spring>
  <MyFilter {...animatedValues}>{...}</MyFilter>
</Spring>

But seems like it is not supported now.