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

Scrolling behind modal #67

Open
kendagriff opened this issue Jun 29, 2019 · 0 comments
Open

Scrolling behind modal #67

kendagriff opened this issue Jun 29, 2019 · 0 comments

Comments

@kendagriff
Copy link

Hi,

I'm using sweet-scroll (it's smooth as butter, by the way!) inside a tall modal, however, toElement scrolls both the modal and the window behind it.

// In context of React using hooks
const scroller = new SweetScroll({
  duration: 1000,
  easing: "easeOutExpo"
}, feedRef.current)
scroller.toElement(el.current, {offset: -75})

Any suggestions?

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