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

Add .stuck class #16

@euancm

Description

@euancm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions