1
/*
2
* HC-Sticky
3
* =========
4
* Version: 2.2.7
5
* Author: Some Web Media
6
* Author URL: https://github.com/somewebmedia
7
* Plugin URL: https://github.com/somewebmedia/hc-sticky
8
* Description: JavaScript library that makes any element on your page visible while you scroll
9
* License: MIT
10
*/
11
12
'use strict';
13
14
(function(global, factory) {
15
if (typeof module === 'object' && typeof module.exports === 'object') {
16
if (global.document) {
17
module.exports = factory(global);
18
}
19
else {
20
throw new Error('HC-Sticky requires a browser to run.');
21
}
22
}
23
else if (typeof define === 'function' && define.amd) {
24
define('hcSticky', [], factory(global));
25
}
26
else {
27
factory(global);
28
}
29
})(typeof window !== 'undefined' ? window : this, (window) => {
30
const document = window.document;
31
32
const DEFAULT_OPTIONS = {
33
top: 0,
34
bottom: 0,
35
bottomEnd: 0,
36
innerTop: 0,
37
innerSticker: null,
38
stickyClass: 'sticky',
39
stickTo: null,
40
followScroll: true,
...
</html>