1. A method of playing an animation, the method comprising: storing, via an electronic device, a plurality of images sequentially captured during a period, each of the plurality of images including an object and a remaining area excluding the object in each of the plurality of images; displaying, via the electronic device, a first image which is one of the plurality of images stored in the electronic device; detecting, via the electronic device, an event to play the animation for the object while the first image is displayed; and in response to detecting the event, playing, via the electronic device, the animation for the object based on the object included in the plurality of images, such that the object is animated and the remaining area remains constant as at least one image among the plurality of images while the object is animated.