Grip the bar with hands around shoulder width apart. Increase the width if you're tall and your feet touch the floor.
Once you're hanging with your feet slightly off the floor, slowly pull your legs up keeping your legs together. (To make this easierr lift up with bent legs - raising your knees first)
Pause for a second, and slowly lower your legs back to the starting position.