My goal is to create a smooth panning effect within a viewport using a child <div>
. However, I want the child <div>
to always fill the viewport completely, without any edges visible. Essentially, I am looking for a way to make the panning experience "endless" by continuously adding onto the child <div>
when the user approaches the edge of the viewport.
UPDATE: Just to clarify, my intention is for the child <div>
to remain stationary while allowing users to pan around freely. The idea is to create an illusion of an infinite plane that users can explore without any fixed elements in play.