The left
offset is used to define
the element's position from the left edge of the
viewing screen.
Similarly, right
offset is used
to define the element's position from the
right edge of the viewing screen.
In the example above, as we scroll left,
the div element with the class sticky-left
remains stuck at a distance of 10px
from the left edge of the sticky-container
due to the position: sticky
property
and
a 10px left offset.
Similarly, the sticky-right
element sticks
at a distance of 10px from the right edge
of the sticky-container
for the same reason,
using position: sticky
with a 10px
right offset.