Left and Right
The Additional properties for setting the coordinates of an element.
For example, You must specify at least one of the top, right, bottom, or left for sticky positioning to work.
Left
div {
position: sticky;
left: 20px;
}
Right
div {
position: sticky;
right: 30px;
}