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

Add the ability to auto hide and show the element #122

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

Conversation

pbaris
Copy link
Contributor

@pbaris pbaris commented Jan 19, 2018

Add the ability to auto hide and show the element. It could be used for 'back to top' functionality.
Initially the element is hidden (visibility:hidden, opacity:0) and after browser window scroll the element is shown (visibility:visible, opacity:'a value').
Two new options added

  • visibilityOffset: browser window scroll (in pixels) after which the element is shown
  • visibilityOpacity: element's opacity when it is shown

verticalPadding = vp;
};

this.isElevating = function() {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you turn above variable line:118 to isElevating and its usage instead creating this function.

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.

2 participants