Skip to content

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