rellax.js initialization
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready( function() { | |
var rellax = new Rellax('.rellax', { | |
speed: -2, | |
center: false, | |
wrapper: null, | |
round: true, | |
vertical: true, | |
horizontal: false | |
}); | |
}) |
I am getting error with this initialization code on code block JavaScript section
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.
Is there a non-jquery alternative?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am getting error with this initialization code on code block JavaScript section