Skip to content

Instantly share code, notes, and snippets.

Created October 2, 2020 17:47
What would you like to do?
rellax.js initialization
jQuery(document).ready( function() {
var rellax = new Rellax('.rellax', {
speed: -2,
center: false,
wrapper: null,
round: true,
vertical: true,
horizontal: false
Copy link

I am getting error with this initialization code on code block JavaScript section

Copy link

pmaly78 commented Sep 10, 2021

This is what I've used:

jQuery(document).ready( function() {

var rellax = new Rellax('.rellax');


and it got rid of the error. Working on the front end also.

Copy link

jmcbade commented Jan 22, 2022

Is there a non-jquery alternative?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment