2.0.2 • Published 1 year ago

@pnx-mixtape/sticky v2.0.2

Weekly downloads
48
License
MIT
Repository
github
Last release
1 year 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.2

1 year ago

2.0.0-alpha.0

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.4

2 years ago

1.1.2

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

3 years ago

1.0.0

3 years ago

1.0.0-alpha.1

3 years ago

1.0.0-alpha.0

3 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.19

5 years ago

0.1.18

5 years ago

0.1.16

5 years ago

0.1.17

5 years ago

0.1.15

5 years ago

0.1.14

5 years ago

0.1.13

5 years ago

0.1.12

5 years ago

0.1.11

5 years ago

0.1.10

5 years ago

0.1.8

5 years ago

0.1.9

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

6 years ago

0.0.1

6 years ago