how to implement "scroll-padding-top"

how to implement “scroll-padding-top” like https://codepen.io/EinLinuus/pen/gOgjBpO