You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,13 +90,13 @@ var StickyState = require('sticky-state');
90
90
91
91
92
92
var stickyOptions = {
93
-
disabled:false,
94
-
className:'sticky',
95
-
stateClassName:'is-sticky',
96
-
fixedClass:'sticky-fixed',
97
-
wrapperClass:'sticky-wrap',
98
-
wrapFixedSticky:true,
99
-
absoluteClass:'is-absolute',
93
+
disabled:false,// disable or enable the sticky feature initially
94
+
className:'sticky',// the core class which should be equal to the css. see above.
95
+
stateClassName:'is-sticky',// the state class, when the element is actually sticky
96
+
fixedClass:'sticky-fixed',// the fallback class that uses position:fixed to make the element sticky
97
+
wrapperClass:'sticky-wrap',// the fallback (polyfilled) version needs a placeholder that uses the space of the actual sticky element when its position:fixed
98
+
wrapFixedSticky:true,// by default the sticky element gets wrapped by the placeholder. if you set it to false it will be inserted right before it.
99
+
absoluteClass:'is-absolute',// the polyfilled sticky element needs to be position:absolut in some cases.
100
100
101
101
// scrollclass will add a class to the sticky element that is depending on the scroll direction when the element is sticky.
102
102
// when the scrolling stops the class will be the value of "none" unless you set "persist" to true.
0 commit comments