An electronic device, comprising: a housing including a first surface facing in a first direction and a second surface facing in a second direction opposite the first direction; a touchscreen display disposed between the first surface and the second surface, and exposed through the first surface; a pressure sensor disposed between the first surface and the second surface, and configured to detect a pressure applied on the touchscreen display by an external object; at least one processor electrically connected to the touchscreen display, the pressure sensor, and a wireless communication circuit; and a memory electrically connected to the processor, wherein the memory includes instructions which, when executed by the processor, cause the electronic device to perform operations comprising: displaying a user interface including one or more items on the touchscreen display; receiving an input for selecting at least one item among the one or more items through the touchscreen display; sensing a pressure applied to, and/or around, the at least one item on the touchscreen display using the pressure sensor while the input is received; selecting a part of the user interface at least partially based on the input and the sensed pressure; providing a visual effect on the user interface based at least in part on the sensed pressure, wherein, during the visual effect, the selected part of the user interface is displayed to provide a different degree of depth from a remaining part of the user interface; sensing a change in an angle between the user and the electronic device while the visual effect is being displayed; and changing the displayed user interface and the degree of depth based on the sensed angle change. a housing including a first surface facing in a first direction and a second surface facing in a second direction opposite the first direction; a touchscreen display disposed between the first surface and the second surface, and exposed through the first surface; a pressure sensor disposed between the first surface and the second surface, and configured to detect a pressure applied on the touchscreen display by an external object; at least one processor electrically connected to the touchscreen display, the pressure sensor, and a wireless communication circuit; and a memory electrically connected to the processor, wherein the memory includes instructions which, when executed by the processor, cause the electronic device to perform operations comprising: displaying a user interface including one or more items on the touchscreen display; receiving an input for selecting at least one item among the one or more items through the touchscreen display; sensing a pressure applied to, and/or around, the at least one item on the touchscreen display using the pressure sensor while the input is received; selecting a part of the user interface at least partially based on the input and the sensed pressure; providing a visual effect on the user interface based at least in part on the sensed pressure, wherein, during the visual effect, the selected part of the user interface is displayed to provide a different degree of depth from a remaining part of the user interface; sensing a change in an angle between the user and the electronic device while the visual effect is being displayed; and changing the displayed user interface and the degree of depth based on the sensed angle change. displaying a user interface including one or more items on the touchscreen display; receiving an input for selecting at least one item among the one or more items through the touchscreen display; sensing a pressure applied to, and/or around, the at least one item on the touchscreen display using the pressure sensor while the input is received; selecting a part of the user interface at least partially based on the input and the sensed pressure; providing a visual effect on the user interface based at least in part on the sensed pressure, wherein, during the visual effect, the selected part of the user interface is displayed to provide a different degree of depth from a remaining part of the user interface; sensing a change in an angle between the user and the electronic device while the visual effect is being displayed; and changing the displayed user interface and the degree of depth based on the sensed angle change.