1000ship / react-scroll-motion

🎞 Easy to make scroll animation
https://1000ship.github.io/react-scroll-motion
MIT License
422 stars 47 forks source link

ScrollContainer and ScrollPage #2

Closed mockingbird001 closed 2 years ago

mockingbird001 commented 3 years ago

ScrollContainer

const ScrollContainer: ({ children, scrollParent }: IProps) => JSX.Element
This JSX tag's 'children' prop expects type 'ReactNodeArray' which requires multiple children, but only a single child was provided.

ScrollPage

const ScrollPage: ({ children, page, debugBorder }: IProps) => JSX.Element
Property 'debugBorder' is missing in type '{ children: Element; page: number; }' but required in type 'IProps'.

I do not understand these two things.

1000ship commented 3 years ago

It seems like Typescript error I'll review this, thx!

ErnestDaDev commented 2 years ago

Hi @1000ship Any update on this?

1000ship commented 2 years ago

Finally I fixed all of things. Sorry for late update.