/jQuery.stickyFooter

Responsive Dynamic-Height Sticky Footers

Primary LanguageJavaScriptMIT LicenseMIT

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
  });
});