Change loco-scroll version in package.json and add uppercase to import, add forEach to polyfill

This commit is contained in:
Antoine Boulanger
2019-08-08 11:18:18 -04:00
parent 9058945b1a
commit 3ed1175aaf
5 changed files with 7 additions and 7 deletions

View File

@@ -185,9 +185,9 @@ this.load = new modularLoad({
</div>
```
```js
import locomotiveScroll from 'locomotive-scroll';
import LocomotiveScroll from 'locomotive-scroll';
this.scroll = new locomotiveScroll({
this.scroll = new LocomotiveScroll({
el: this.el,
smooth: true
});