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.