Skip to content
This repository has been archived by the owner on Dec 29, 2017. It is now read-only.

Add .stuck class #16

Open
euancm opened this issue Nov 27, 2013 · 0 comments
Open

Add .stuck class #16

euancm opened this issue Nov 27, 2013 · 0 comments

Comments

@euancm
Copy link

euancm commented Nov 27, 2013

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant