nk-o / jarallax

Parallax scrolling for modern browsers
https://jarallax.nkdev.info
MIT License
1.39k stars 214 forks source link

IE11 with the node_modul implementation doesn't work, because babel doesn't work with the src files #195

Closed MacKP closed 2 years ago

MacKP commented 3 years ago

Issue description:

I had a Problem with the IE11 and the jarallax js. The Problem was, with the implementation of the npm_modules version I get the src files. And babel does't work with the module-Files. I have now importet the dist files like this:

import {jarallax} from  'jarallax/dist/jarallax.js';
import {jarallaxVideo} from  'jarallax/dist/jarallax-video.js';

in my jarallax.js and now my bable can work with that and the code will run in IE11.

Maybe it would be better to link to the dist files in the index.js of jarallax?

Version used:

1.12.7

kind regards

nk-o commented 2 years ago

Support for IE dropped in Jarallax v2.