css position sticky

CSS
h2{
 	position: absolute;
 	left: 100px;
	top: 150px;
}
 position: sticky;  div.sticky {
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: 0;
} h2.pos_left {
  position: relative;
  left: -20px;
}

h2.pos_right {
  position: relative;
  left: 20px;
}
Source

Also in CSS: