Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 501 Bytes

README.md

File metadata and controls

32 lines (27 loc) · 501 Bytes

jQuery.stickyFooter

Responsive Dynamic-Height Sticky Footer

Example

HTML

<html>
  <body>
    <div id="page">
      <p>Content</p>
    </div>
    <footer>
      <p>Footer</p>
    </footer>
  </body>
</html>

JavaScript

Initialize

(function ($) {
  $('footer').stickyFooter();
});

Default options

(function ($) {
  $('footer').stickyFooter({
    wrapper: $('html'),
    container: $('body'),
    delay: 200
  });
});