Skip to content

Scrolling behind modal #67

@kendagriff

Description

@kendagriff

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions