Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 665 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 665 Bytes

Sticky Element

sticky-element is sticky positioned container. It uses the Stickyfill position: sticky polyfill for cross-browser support.

Usage

Link into your project

<link rel="import" href="[path]/sticky-element/sticky-element.html">

And use it wherever you want a sticky container

<sticky-element>
    I'm sticky!
</sticky-element>

Options

You can disable a sticky element any time with the disabled property

<sticky-element disabled>
    I am no longer sticky :-(
</sticky-element>