.sticky-element {
	top: 0;
	left: 0;
	z-index: 999;
	transform: translateZ(0);
	&.sticky-active {
		position: fixed;
	}
	&.sticky-inactive {
		position: initial;
	}
}
.sticky-element {
    top: 0;
    left: 0;
    z-index: 999;
    transform: translateZ(0);
    &.sticky-active {
        position: fixed;
    }
    &.sticky-inactive {
        position: relative;
    }
}
Change inactive state position to relative instead of static
Change inactive state position to relative instead of static
