We'll start by creating a 3d box. Create a rectangle in a new layer.
Press Ctrl+T. Right click and select perspective.
Duplicate the layer and fill with black color. Move the layer below the first layer.
Create another rectangle. Using similar steps create the other sides of the box.
Duplicate this layer and fill with black color. Place it on the other side. Move this layer below all layers.
Create top lid of the box similarly.
Press Ctrl+T. Right click and select warp. Adjust nodes and handles to create a shape like this.
Fill this shape with orange color.
Duplicate this layer. Fill it with brown color. Move this layer below previous layer. Move this shape towards right a few pixels.
Apply stroke layer style to all box layers.
Using custom shape tool create some cool flowers and patterns on front sides of the box.
Our box is complete. Now we'll create jack. USing elliptical shape tool create a few ellipses and place as shown.
Create eyes, nose lips etc. using 2 pixel brush. Create 2 springy antenna and place on top of the head.
Create arm and hand using pen tool.
Duplicate the arm layer. Flip horizontally and place it for the other arm.
Our jack and box, both are done. Link and merge all jack layers together. Time to animate jack. Open animation window. Select first frame and in layer window hide jack layer.
Duplicate this frame. Unhide jack and adjust it's position as shown.
Duplicate this frame. Adjust jack's position as shown. At this frame jack is mostly out of the box.
Duplicate this frame. At this frame simply move jack just a couple of pixels down.
Select frame 3&4. Duplicate it three four times. This will add a springy motion to jack.
Press Shift+Ctrl+Alt+S to save an optimize animated GIF.






More Photoshop: