Open lupinskij opened 8 years ago
I like the idea but that css name is a bit confusing as at first (and probably second) glance, it seems the same as the pinned
class. Could you think up a different class name?
In the meantime, you can use onPin
to set a custom class for this.
What if it were initially set to headroom--unfixed, opposed to only setting unfixed after it has been pinned. That way one could style strictly the pinned state
Perhaps headroom--repinned would work. On Tue, Dec 1, 2015 at 9:18 AM Jeff Lupinski notifications@github.com wrote:
What if it were initially set to headroom--unfixed, opposed to only setting unfixed after it has been pinned. That way one could style strictly the pinned state
— Reply to this email directly or view it on GitHub https://github.com/KyleAMathews/react-headroom/issues/43#issuecomment-161037808 .
To unfix component when scrolling to initial position I just had to do some small modifications, see the attached patch. (I've done it on dist version because I don't know how to modify/compile coffescript and make a pull request, sorry) headroom.patch.zip
would like to see this +1
It would be great to add a class .headroom--top for when the header is initially pinned, but at the top.
This is beneficial for instances that the header should have specific styles when pinned, but not at the initial top position.