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
lemme start by saying fixTo.js is awesome– simple to use and effective in it's result, like every plugin ought to be! the two requests I have are as follows:
add class name to fixed elements even when using native position:sticky
Reasoning: I use the className option to hook certain CSS styles to the fixed state, such as a box-shadow or something. On mobile, not adding the className appears to "break" the styling. You can easily accomplish a similar effect using scrollstart and scrollstop events, but it would be nice to have it baked in to the plugin itself!
add a class name like .fixTo-shim (or some such thing) to the DOM element that is generated and inserted before any fixed element
Reasoning: imagine the height of my nav changes when it's fixed (some elements become vertically smaller). Currently, I can reflow the nav using the refresh trigger. But let's say I wanted to apply a transition property to minimize the bounce when the height changes, there's no way to do this consistently!
Hope that all makes sense. Again, I love the plugin!
The text was updated successfully, but these errors were encountered:
lemme start by saying
fixTo.js
is awesome– simple to use and effective in it's result, like every plugin ought to be! the two requests I have are as follows:add class name to fixed elements even when using native
position:sticky
add a class name like
.fixTo-shim
(or some such thing) to the DOM element that is generated and inserted before any fixed elementHope that all makes sense. Again, I love the plugin!
The text was updated successfully, but these errors were encountered: