Web UI component: j-Sticker


  • Info
  • HTML
  • JS
  • CSS
  • Meta

j-Sticker

Configuration:

  • on {String} this class is enabled when the scroll top position is greater than this element Y position
  • off {String} this class is enabled when the scroll top position is smaller than this element Y position
  • margin {Number} a margin which will be deducted from top position of the current element
  • xs {Boolean} enables sticker for extra small display (default: false)
  • sm {Boolean} enables sticker for small display (default: true)
  • md {Boolean} enables sticker for medium display (default: true)
  • lg {Boolean} enables sticker for large display (default: true)
  • NEW: type {String} a method name for obtaining of position offset (default) or position
  • NEW: marginparent {Number} a margin for parent scrolling (default: 0)
  • NEW: parent {String} optional, a parent selector (look to example for understanding)

Author