2.0.0 • Published 21 days ago

@pnx-mixtape/sticky v2.0.0

Weekly downloads
48
License
MIT
Repository
github
Last release
21 days ago

@pnx-mixtape/sticky

Documentation and examples: Sticky

Installation

npm install @pnx-mixtape/sticky --save

How to use

CSS

  • PostCSS workflow: @import '@pnx-mixtape/sticky';
  • Native CSS: @import url('dist/sticky.css');
  • Link tag: <link href="dist/sticky.css" rel="stylesheet" type="text/css">

Vanilla JS

This javascript is only needed if you want to track when an element becomes sticky, in order to change its styles.

  • ES6 import: import Sticky from '@pnx-mixtape/sticky';
  • Script tag: <script src="dist/sticky.js" type="text/javascript"></script>

HTML

<div data-sticky class="sticky">
  <h4>Element to be fixed</h4>
  <p>Body content.</p>
</div>
2.0.0

21 days ago

1.1.1

7 months ago

1.1.0

8 months ago

1.0.4

9 months ago

1.1.2

6 months ago

1.0.3

11 months ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

1.0.0-alpha.1

1 year ago

1.0.0-alpha.0

2 years ago

0.2.4

2 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.19

3 years ago

0.1.18

3 years ago

0.1.16

4 years ago

0.1.17

4 years ago

0.1.15

4 years ago

0.1.14

4 years ago

0.1.13

4 years ago

0.1.12

4 years ago

0.1.11

4 years ago

0.1.10

4 years ago

0.1.8

4 years ago

0.1.9

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

5 years ago

0.0.1

5 years ago