Users perceive interface design elements that differentiate the foreground (figure) from the background (ground) as something to focus on or interact with.
Things that move in synch are perceived as belonging to the same group and being different than other screen elements that stay put or move differently.
Visual design elements that are connected (for example, by a line) are seen as belonging together. This principle is strong enough to overrule small differences between the items.
UI elements that are close together are perceived as belonging together, whereas users think that things that are apart play different roles in the interaction.
User interface elements that share one or more traits (such as shape, color, size, etc.) will be seen by users as being similar and belonging together.
The gestalt principles for visual perception make users see some graphical user interface design elements as parts of a whole, and others as being separate, and thus different.