Hi, I’ve added the following CSS
@media(min-width: 769px) {
.inside-right-sidebar {
height: 100%;
}
.inside-right-sidebar .widget:last-child {
position: -webkit-sticky;
position: sticky;
top: 70px;
}
}
to make the last widget sticky in the sidebar and it is working fine. However, I want to customize it further.
Is there any way to stop the sticky widget from being sticky as soon as it reaches near the bottom of the page while scrolling?
Fixed Widget and Sticky Elements for WordPress plugin got the function I’m wanting to implement but I want CSS for this.
Please help, thanks in advance.