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
{{ message }}
This repository has been archived by the owner on Dec 29, 2017. It is now read-only.
Hey,
I thought it would be helpful to add a .stuck class to make it possible to style stuck elements.
I've never really used github before, but seeing as I got it working with only one line, I don't think its worth doing a pull/fork/push whatever its supposed to be.
Anyway, after line 38 in polyfill.position-sticky.js, add
$(data.$clone).addClass('stuck')
then you can style the element with .element.stuck {
It's not a perfect solution due to the way the polyfill works, but it works for small effects.
Thanks,
euan.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hey,
I thought it would be helpful to add a .stuck class to make it possible to style stuck elements.
I've never really used github before, but seeing as I got it working with only one line, I don't think its worth doing a pull/fork/push whatever its supposed to be.
Anyway, after line 38 in polyfill.position-sticky.js, add
then you can style the element with .element.stuck {
It's not a perfect solution due to the way the polyfill works, but it works for small effects.
Thanks,
euan.
The text was updated successfully, but these errors were encountered: