1.2.1 • Published 4 years ago

fixed-landmark v1.2.1

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

Fixed Landmark

A library for fixing elements within a container.

LIVE DEMO

Example initialization

window.addEventListener("load",function(){

  // EXAMPLE 1 - FIX AN ELEMENT TO A CONTAINER
  new FixedElement({
    element   : "#fixed-element-1",
    container : "#container-1"
  });

  // EXAMPLE 2 - FIX ELEMENT TO BODY
  new FixedElement({
    element   : 'nav',
    container : 'body'
  });


  new FixedElement({
    // AVAILABLE OPTIONS

    // element : String selector | DOMElement
    // container : String selector | DOMElement
    // offsetElement : String selector | DOMElement
    // offsetValue : int
    // offsetFunction : function
    // - Parameter: this
    // - Parameter: int offset
    // - Expected return value: int

  });

});
1.2.1

4 years ago

1.2.0

4 years ago

1.1.5

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago