Skip to content

Instantly share code, notes, and snippets.

Embed
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
});
})
@pmaly78
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.

@jmcbade
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