Issue with require js
vesse13 opened this issue · comments
vesse13 commented
Issue description:
Hi, when i load Jarallax.js with require.js, i can't use data-attributes to init the parallax. Do you have an idea to solve this ?
Version used:
(Did you try using the develop branch from GitHub? There's a chance your issue has already been addressed there)
last
Code to reproduce the issue (HTML blocks + JavaScript initialization)
Nikita commented
Hi.
Since you use require.js, you need to call Jarallax manually. Run this code after the page loaded:
jarallax(document.querySelectorAll('[data-jarallax]'));