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

Callbacks and doing things with them #239

Open
yratof opened this issue Nov 8, 2021 · 1 comment
Open

Callbacks and doing things with them #239

yratof opened this issue Nov 8, 2021 · 1 comment

Comments

@yratof
Copy link

yratof commented Nov 8, 2021

Has anyone been able to use the callback to change anything outside of positions? It seems like it's not doing anything other than bringing back X & Y coordinates.

Examples welcomed here

@sendy34
Copy link

sendy34 commented Apr 25, 2022

@yratof
Yes, for that you can bind a specific element with Rellax, so that you know about callback positions for that particular element. The positions are percentage based are generally revolves around center percentage data-rellax-percentage="0.5".

When you know that callback is for a specific element by binding it manually, you def can add some JS code based on positions.

It would be def great if Rellax would add additional elements in callback.

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

No branches or pull requests

2 participants