Progression
1 Tuck, chest to wall
In a chest to wall handstand with a distance so your hips are straight above your shouders and wrists (see above)
Feet flat against the wall
Wrists, shoulders, hips above one another
Bend one leg over the butt until the heel touches, the knee will travel off the wall
2 One foot after another away
Now lay the second leg with the heel above the butt
If that is too hard, tiptoe with the second leg against the wall to press yourself as far as possible out of the wall
Till it's possible to stand free with both legs in a tuck while the heels touch the butt
3 Both feet away
Do the same thing and lay both legs in one time flat against the butt