jsonkao / react-scrollama

Simple scrollytelling with the IntersectionObserver in React.
https://jsonkao.github.io/react-scrollama
MIT License
387 stars 30 forks source link

Added support for progress. #15

Closed allan-walker closed 4 years ago

allan-walker commented 5 years ago

This pr adds three new props to : progressmode: bool, onStepProgress: callback function, threshold: int

onStepProgress has three parameters: element (step), data, progress (float between 0-1)

allan-walker commented 5 years ago

@jsonkao requested changes made

schlesingermatthias commented 5 years ago

@allan-walker @jsonkao any update on this PR?

allan-walker commented 5 years ago

@schlesingermatthias @jsonkao I believe the requested changes have been made and ready for @jsonkao to review and merge.

jefffriesen commented 5 years ago

This would be great to get this merged