dixonandmoe / rellax

Lightweight, vanilla javascript parallax library
https://dixonandmoe.com/rellax/
MIT License
7.06k stars 878 forks source link

Uncaught TypeError: Rellax is not a constructor #156

Closed Rmxash closed 5 years ago

Rmxash commented 5 years ago

Hi, this is what I'm getting when loading the module through require. Is there any solution ? I couldn't find one after a lot of testing.

cwildfoerster commented 3 years ago

Thanks for the solution @Rmxash

cwildfoerster commented 3 years ago
import Rellax from 'rellax';
const rallax = new Rallax('.selector');