react-sticky-position icon indicating copy to clipboard operation
react-sticky-position copied to clipboard

Custom class when sticking

Open scottsweb opened this issue 9 years ago • 1 comments

It would be great if a custom className could be added to the .sticky container when it becomes stuck. This would make it easy to tweak the CSS in this situation. For example I would like to add a small box-shadow when it is stuck to the top of the page.

scottsweb avatar Dec 16 '15 10:12 scottsweb

+1 top offset and custom class are needed like this https://github.com/captivationsoftware/react-sticky

SPAHI4 avatar Feb 03 '16 10:02 SPAHI4