Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing forced delay in <Anime scale={ delay: number }></Anime> #81

Open
gunnar-abrahamsson opened this issue Sep 29, 2020 · 0 comments

Comments

@gunnar-abrahamsson
Copy link

I get a typescript type error when trying to recreate the grid example on animejs
https://animejs.com/documentation/#gridStaggering

My working example with ts warnings
https://codesandbox.io/s/pensive-wozniak-lv45b?file=/src/App.tsx

My proposed fix

// Change
delay: ((el: Element, index?: number, len?: number) => number) | number;
// To in react-anime.d.ts
delay?: ((el: Element, index?: number, len?: number) => number) | number;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant