Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Spellhammer
Created October 2, 2020 17:47
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Spellhammer/8b6edfb4ce33101fef5d9d5f965001ef to your computer and use it in GitHub Desktop.
Save Spellhammer/8b6edfb4ce33101fef5d9d5f965001ef to your computer and use it in GitHub Desktop.
rellax.js initialization
jQuery(document).ready( function() {
var rellax = new Rellax('.rellax', {
speed: -2,
center: false,
wrapper: null,
round: true,
vertical: true,
horizontal: false
});
})
@ahforayeji
Copy link

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

@WebSemFronteiras
Copy link

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

@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