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

Lead by view port #243

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

cvillalobos
Copy link

Enumerating changes in the rellax.js file:

  1. Line 93 - leadByViewPOrt new configurable attribute for the initialization action.
  2. Line 402 - New isInViewPort() function to check targeted element position according to ViewPort.
  3. Line 420 - New conditional added to allow animation according to leadByViewPort attribute value.

Adding new property switch called 'leadByViewPort' to manage if the animation should only happen when the element is within the ViewPort area.
- Removing use of JQuery from the library as previous suggestion was using the $. dependency.
- Also removing hardwire value referencing the id of an element.
Removing more $ dependencies
Removing formatting changes.
@cvillalobos
Copy link
Author

cvillalobos commented Mar 22, 2022

@moeamaya, here is the new PR as requested. Sorry, I just notice the accumulated commits are also here. I tried to remove the formatting changes by resetting the file and applying just my changes. However, if you just want to have one single commit I can remove all this and try to get the repo cloned again and start all over again. Just let me know.

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.

1 participant