Skip to content

Not installing package, but using url as source #48

@lbreguet

Description

@lbreguet

I'm trying to use the plugin in a SharePoint website, and I'm trying to use the plugin in the following form:

require(["https://github.com/tsuyoshiwada/sweet-scroll/blob/master/sweet-scroll.js"], function() {
      var scroller = new SweetScroll({
            vertical: false,
            horizontal: true,
      }, '#container');
})

However, I keep getting an error that SweetScroll is undefined and it's breaking the rest of my script.

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