gm0t / react-sticky-el

MIT License
256 stars 47 forks source link

Best way to update default top style value when element is fixed #79

Open nitishmittal1990 opened 2 years ago

nitishmittal1990 commented 2 years ago

What is the best way to update CSS's top property from 0 to some other value when the element gets sticky?

Can I use the stickyClassName props to override top?