Skip to content

change scroll wrapper #570

@lorangdevelopment

Description

@lorangdevelopment

I currently can't seem to change the scroll wrapper in Locomotive Scroll v5. I need to use a custom div (with id "global-scroll") as the website's scroll wrapper instead of the window. This limitation prevents me from implementing a specific layout structure that requires a custom scroll container.

Like this:

const scroll = new LocomotiveScroll({ wrapper: document.getElementById('global-scroll'), // other options... });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions