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
});
})
@ahforayeji

This comment has been minimized.

Copy link

@ahforayeji ahforayeji commented Jul 30, 2021

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

@WebSemFronteiras

This comment has been minimized.

Copy link

@WebSemFronteiras WebSemFronteiras commented Aug 21, 2021

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

@pmaly78

This comment has been minimized.

Copy link

@pmaly78 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.

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