nk-o / jarallax

Parallax scrolling for modern browsers

Home Page:https://jarallax.nkdev.info

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with require js

vesse13 opened this issue · comments

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)

Hi.

Since you use require.js, you need to call Jarallax manually. Run this code after the page loaded:

jarallax(document.querySelectorAll('[data-jarallax]'));