react-animate-on-scroll icon indicating copy to clipboard operation
react-animate-on-scroll copied to clipboard

Not working in modals

Open hacking-robot opened this issue 7 years ago • 1 comments

The animations are not triggered in modals. Probably because of the scroll event working only on the parent. When I enter window.scrollTo( 0, 0 ) in the console it fires the animations.

hacking-robot avatar Apr 12 '18 18:04 hacking-robot

Hi, What do you mean by modals? Could you create an example or show me the code/app that you're working on?

Do you mean that the modal is the element that scrolls? If so can you just set scrollableParentSelector to point to the modal?

dbramwell avatar Apr 14 '18 03:04 dbramwell