1. A computer-implemented method comprising: displaying an image on an electronic device to a user of a social-networking system, the image comprising content downloaded from a social graph of the social-networking system, wherein the social graph comprises a plurality of nodes and edges connecting the nodes, and at least one node of the social graph corresponds to the user; determining a relationship between the content of the image and the node corresponding to the user accessing the image based on the social graph of the social-networking system; and displaying an animation of panning the image to display at least a first portion of the image before a second portion of the image to the user accessing the image based on displaying a movement of the image that is determined based on the relationship between the content of the image and the node corresponding to the user of the social-networking system, the first portion of the image being different from the second portion of the image.