markcellus / scroll-js

Light cross-browser scroller that uses native javascript
MIT License
230 stars 33 forks source link

Feature Request: `scrollBy` method #500

Open brandonmcconnell opened 2 years ago

brandonmcconnell commented 2 years ago

@markcellus, thanks for creating such a versatile package to handle more complex and programmatic scrolling needs.

Would you consider adding a scrollBy method that accounts for the current scroll offset of the target, similar to how the browser's built-in APIs offer both scrollTo and scrollBy methods?

Thanks!