react-sticky-position
react-sticky-position copied to clipboard
Custom class when sticking
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.
+1 top offset and custom class are needed like this https://github.com/captivationsoftware/react-sticky