Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added wrapper option #27

Merged
merged 2 commits into from
Mar 8, 2018
Merged

Added wrapper option #27

merged 2 commits into from
Mar 8, 2018

Conversation

kajetan-nobel
Copy link
Contributor

@kajetan-nobel kajetan-nobel commented Dec 26, 2016

Needed option in #26

Example of use:

var rellax = new Rellax('.rellax', {
    wrapper: document.querySelector('.wrapper') // DOMElement
});

or

var rellax = new Rellax('.rellax', {
    wrapper: '.wrapper' // selector
});

@kajetan-nobel
Copy link
Contributor Author

I added also refresh method to handle by own window resize or reload elements

@kajetan-nobel kajetan-nobel mentioned this pull request Dec 27, 2016
@bpongy
Copy link

bpongy commented Feb 9, 2017

not necessary with center: true option.
#36

@kajetan-nobel
Copy link
Contributor Author

@redpik without that scroll event is not handled. In my example you scroll wrapper, not document (document is with overflow hidden).

@tonyyb
Copy link

tonyyb commented Jun 29, 2017

👍 for refresh function !
When will it be published ?

@nizulzaim
Copy link

nizulzaim commented Jul 18, 2017

@routegroup , i am sorry. i want to know if using this wrapper option, it detect the wrapper offsetX and offsetY rather than window offset? if the answer yes, from my understanding it is possible to use it with custom scrollbar #65. @tonyyb, i think someone need to maintain this project. I also think this project already abandon by the owner

@mralessio
Copy link

Need it too. Any plans to merge it?

@jvrdom
Copy link

jvrdom commented Feb 15, 2018

This will be awesome to use, need it too.

@kajetan-nobel
Copy link
Contributor Author

I merge master to this PR. If you need any changes about this PR please tell me.

@moeamaya moeamaya merged commit ecbd353 into dixonandmoe:master Mar 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants