This penguin sequence is created by using a series of two framed animations. Deciding on the amount of frame for your animation depends on two points; amount of time to create the animation, and how smooth it should appear. Having more frames in the cycle will make it appear more smooth, but will take more time to create.
Below is the penguin sprite atlas used for this animation.
Character and animation by Alex Chalamova.